about summary refs log tree commit diff
path: root/tests/ui/proc-macro/quote/not-repeatable.stderr
blob: ff31799abb007888e49f8d1570d3c7ddfedcccf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
error[E0599]: the method `quote_into_iter` exists for struct `Ipv4Addr`, but its trait bounds were not satisfied
  --> $DIR/not-repeatable.rs:11:13
   |
LL | struct Ipv4Addr;
   | --------------- method `quote_into_iter` not found for this struct because it doesn't satisfy `Ipv4Addr: Iterator`, `Ipv4Addr: ToTokens`, `Ipv4Addr: proc_macro::ext::RepIteratorExt` or `Ipv4Addr: proc_macro::ext::RepToTokensExt`
...
LL |     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: proc_macro::ext::RepIteratorExt`
           `&Ipv4Addr: Iterator`
           which is required by `&Ipv4Addr: proc_macro::ext::RepIteratorExt`
           `Ipv4Addr: ToTokens`
           which is required by `Ipv4Addr: proc_macro::ext::RepToTokensExt`
           `&mut Ipv4Addr: Iterator`
           which is required by `&mut Ipv4Addr: proc_macro::ext::RepIteratorExt`
note: the traits `Iterator` and `ToTokens` must be implemented
  --> $SRC_DIR/proc_macro/src/to_tokens.rs:LL:COL
  --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL

error[E0282]: type annotations needed
  --> $DIR/not-repeatable.rs:11:13
   |
LL |     let _ = quote! { $($ip)* };
   |             ^^^^^^^^^^^^^^^^^^ cannot infer type

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0282, E0599.
For more information about an error, try `rustc --explain E0282`.