]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/impl-trait-in-macro.stderr
Auto merge of #106171 - compiler-errors:consolidate-extract_callable_info, r=estebank...
[rust.git] / tests / ui / impl-trait / impl-trait-in-macro.stderr
1 error[E0308]: mismatched types
2   --> $DIR/impl-trait-in-macro.rs:9:9
3    |
4 LL |     ($($tr:tt)*) => { impl $($tr)* };
5    |                       ----
6    |                       |
7    |                       expected type parameter
8    |                       found type parameter
9 ...
10 LL |     let mut a = x;
11    |                 - expected due to this value
12 LL |     a = y;
13    |         ^ expected type parameter `impl Debug`, found a different type parameter `impl Debug`
14    |
15    = note: expected type parameter `impl Debug` (type parameter `impl Debug`)
16               found type parameter `impl Debug` (type parameter `impl Debug`)
17    = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound
18    = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0308`.