edith
Clone
https://git.tahinli.com/Tahinli/edith.git
0 watching0 forksRust18.3 MiBff99ad6Tahinli6 days ago1055 commits
| 1 | error[E0599]: the method `FIRST_ARG_MUST_EITHER_BE_Span_OR_IMPLEMENT_ToTokens_OR_BE_SpanRange` exists for reference `&Foo`, but its trait bounds were not satisfied |
| 2 | --> tests/ui/misuse.rs:7:5 |
| 3 | | |
| 4 | 3 | struct Foo; |
| 5 | | ---------- doesn't satisfy `Foo: quote::to_tokens::ToTokens` |
| 6 | ... |
| 7 | 7 | abort!(Foo, "BOOM"); |
| 8 | | ^^^^^^^^^^^^^^^^^^^ method cannot be called on `&Foo` due to unsatisfied trait bounds |
| 9 | | |
| 10 | = note: the following trait bounds were not satisfied: |
| 11 | `Foo: quote::to_tokens::ToTokens` |
| 12 | which is required by `&Foo: ToTokensAsSpanRange` |
| 13 | note: the trait `quote::to_tokens::ToTokens` must be implemented |
| 14 | --> $CARGO/quote-1.0.37/src/to_tokens.rs |
| 15 | | |
| 16 | | pub trait ToTokens { |
| 17 | | ^^^^^^^^^^^^^^^^^^ |
| 18 | = help: items from traits can only be used if the trait is implemented and in scope |
| 19 | = note: the following traits define an item `FIRST_ARG_MUST_EITHER_BE_Span_OR_IMPLEMENT_ToTokens_OR_BE_SpanRange`, perhaps you need to implement one of them: |
| 20 | candidate #1: `Span2AsSpanRange` |
| 21 | candidate #2: `SpanAsSpanRange` |
| 22 | candidate #3: `SpanRangeAsSpanRange` |
| 23 | candidate #4: `ToTokensAsSpanRange` |
| 24 | = note: this error originates in the macro `$crate::diagnostic` which comes from the expansion of the macro `abort` (in Nightly builds, run with -Z macro-backtrace for more info) |