Files
cli/vendor/quote/tests/ui/not-repeatable.stderr

35 lines
1.8 KiB
Plaintext
Raw Normal View History

error[E0599]: the method `quote_into_iter` exists for struct `Ipv4Addr`, but its trait bounds were not satisfied
--> tests/ui/not-repeatable.rs:7:13
|
3 | struct Ipv4Addr;
| --------------- method `quote_into_iter` not found for this struct because `Ipv4Addr` doesn't implement `Iterator` or `ToTokens`
...
7 | let _ = quote! { #(#ip)* };
| ^^^^^^^^^^^^^^^^^^ method cannot be called on `Ipv4Addr` due to unsatisfied trait bounds
|
= note: the following trait bounds were not satisfied:
`Ipv4Addr: Iterator`
which is required by `Ipv4Addr: quote::__private::ext::RepIteratorExt`
`&Ipv4Addr: Iterator`
which is required by `&Ipv4Addr: quote::__private::ext::RepIteratorExt`
`Ipv4Addr: ToTokens`
which is required by `Ipv4Addr: quote::__private::ext::RepToTokensExt`
`&mut Ipv4Addr: Iterator`
which is required by `&mut Ipv4Addr: quote::__private::ext::RepIteratorExt`
note: the traits `Iterator` and `ToTokens` must be implemented
--> $RUST/core/src/iter/traits/iterator.rs
|
| pub const trait Iterator {
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
::: src/to_tokens.rs
|
| pub trait ToTokens {
| ^^^^^^^^^^^^^^^^^^
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following traits define an item `quote_into_iter`, perhaps you need to implement one of them:
candidate #1: `quote::__private::ext::RepAsIteratorExt`
candidate #2: `quote::__private::ext::RepIteratorExt`
candidate #3: `quote::__private::ext::RepToTokensExt`
= note: this error originates in the macro `$crate::quote_bind_into_iter` which comes from the expansion of the macro `quote` (in Nightly builds, run with -Z macro-backtrace for more info)