File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- // Issue 32950
1+ // Issue: # 32950
22// Ensure that using macros rather than a type doesn't break `derive`.
33
44#[ derive( Debug ) ]
55struct Nonsense < T > {
66 //~^ ERROR type parameter `T` is never used
7- should_be_vec_t : vec ! [ T ]
7+ should_be_vec_t : vec ! [ T ] ,
88 //~^ ERROR `derive` cannot be used on items with type macros
99 //~| ERROR expected type, found `expr` metavariable
1010}
Original file line number Diff line number Diff line change 11error: `derive` cannot be used on items with type macros
22 --> $DIR/nonsense-input-to-debug.rs:7:22
33 |
4- LL | should_be_vec_t: vec![T]
4+ LL | should_be_vec_t: vec![T],
55 | ^^^^^^^
66
77error: expected type, found `expr` metavariable
88 --> $DIR/nonsense-input-to-debug.rs:7:22
99 |
10- LL | should_be_vec_t: vec![T]
10+ LL | should_be_vec_t: vec![T],
1111 | ^^^^^^^
1212 | |
1313 | expected type
You can’t perform that action at this time.
0 commit comments