|
| 1 | +error: named structs are not supported |
| 2 | + --> tests/ui-fail-stable/from_param.rs:4:1 |
| 3 | + | |
| 4 | +4 | / struct Foo1 { |
| 5 | +5 | | a: String |
| 6 | +6 | | } |
| 7 | + | |_^ |
| 8 | + |
| 9 | +error: [note] error occurred while deriving `FromParam` |
| 10 | + --> tests/ui-fail-stable/from_param.rs:3:10 |
| 11 | + | |
| 12 | +3 | #[derive(FromParam)] |
| 13 | + | ^^^^^^^^^ |
| 14 | + | |
| 15 | + = note: this error originates in the derive macro `FromParam` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 16 | + |
| 17 | +error: named structs are not supported |
| 18 | + --> tests/ui-fail-stable/from_param.rs:9:1 |
| 19 | + | |
| 20 | +9 | struct Foo2 {} |
| 21 | + | ^^^^^^^^^^^^^^ |
| 22 | + |
| 23 | +error: [note] error occurred while deriving `FromParam` |
| 24 | + --> tests/ui-fail-stable/from_param.rs:8:10 |
| 25 | + | |
| 26 | +8 | #[derive(FromParam)] |
| 27 | + | ^^^^^^^^^ |
| 28 | + | |
| 29 | + = note: this error originates in the derive macro `FromParam` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 30 | + |
| 31 | +error: Only enums without data fields are supported |
| 32 | + --> tests/ui-fail-stable/from_param.rs:13:6 |
| 33 | + | |
| 34 | +13 | A(String), |
| 35 | + | ^^^^^^^^ |
| 36 | + |
| 37 | +error: [note] error occurred while deriving `FromParam` |
| 38 | + --> tests/ui-fail-stable/from_param.rs:11:10 |
| 39 | + | |
| 40 | +11 | #[derive(FromParam)] |
| 41 | + | ^^^^^^^^^ |
| 42 | + | |
| 43 | + = note: this error originates in the derive macro `FromParam` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 44 | + |
| 45 | +error: tuple structs are not supported |
| 46 | + --> tests/ui-fail-stable/from_param.rs:18:1 |
| 47 | + | |
| 48 | +18 | struct Foo4(usize); |
| 49 | + | ^^^^^^^^^^^^^^^^^^^ |
| 50 | + |
| 51 | +error: [note] error occurred while deriving `FromParam` |
| 52 | + --> tests/ui-fail-stable/from_param.rs:17:10 |
| 53 | + | |
| 54 | +17 | #[derive(FromParam)] |
| 55 | + | ^^^^^^^^^ |
| 56 | + | |
| 57 | + = note: this error originates in the derive macro `FromParam` (in Nightly builds, run with -Z macro-backtrace for more info) |
0 commit comments