|
1 | 1 | error: `derive` cannot be used on items with type macros |
2 | | - --> $DIR/issue-32950.rs:6:5 |
| 2 | + --> $DIR/nonsense-input-to-debug.rs:7:22 |
3 | 3 | | |
4 | | -LL | concat_idents!(Foo, Bar) |
5 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^ |
| 4 | +LL | should_be_vec_t: vec![T] |
| 5 | + | ^^^^^^^ |
6 | 6 |
|
7 | | -error[E0412]: cannot find type `FooBar` in this scope |
8 | | - --> $DIR/issue-32950.rs:6:5 |
| 7 | +error: expected type, found `expr` metavariable |
| 8 | + --> $DIR/nonsense-input-to-debug.rs:7:22 |
9 | 9 | | |
10 | | -LL | concat_idents!(Foo, Bar) |
11 | | - | ^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope |
| 10 | +LL | should_be_vec_t: vec![T] |
| 11 | + | ^^^^^^^ |
| 12 | + | | |
| 13 | + | expected type |
| 14 | + | in this macro invocation |
| 15 | + | this macro call doesn't expand to a type |
| 16 | + | |
| 17 | + = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 18 | + |
| 19 | +error[E0392]: type parameter `T` is never used |
| 20 | + --> $DIR/nonsense-input-to-debug.rs:5:17 |
| 21 | + | |
| 22 | +LL | struct Nonsense<T> { |
| 23 | + | ^ unused type parameter |
| 24 | + | |
| 25 | + = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData` |
| 26 | + = help: if you intended `T` to be a const parameter, use `const T: /* Type */` instead |
12 | 27 |
|
13 | | -error: aborting due to 2 previous errors |
| 28 | +error: aborting due to 3 previous errors |
14 | 29 |
|
15 | | -For more information about this error, try `rustc --explain E0412`. |
| 30 | +For more information about this error, try `rustc --explain E0392`. |
0 commit comments