|
| 1 | +error: `SmartPointer` can only be derived on `struct`s with `#[repr(transparent)]` |
| 2 | + --> $DIR/deriving-smart-pointer-neg.rs:5:10 |
| 3 | + | |
| 4 | +LL | #[derive(SmartPointer)] |
| 5 | + | ^^^^^^^^^^^^ |
| 6 | + | |
| 7 | + = note: this error originates in the derive macro `SmartPointer` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 8 | + |
| 9 | +error: At least one generic type should be designated as `#[pointee]` in order to derive `SmartPointer` traits |
| 10 | + --> $DIR/deriving-smart-pointer-neg.rs:11:10 |
| 11 | + | |
| 12 | +LL | #[derive(SmartPointer)] |
| 13 | + | ^^^^^^^^^^^^ |
| 14 | + | |
| 15 | + = note: this error originates in the derive macro `SmartPointer` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 16 | + |
| 17 | +error: `SmartPointer` can only be derived on `struct`s with at least one field |
| 18 | + --> $DIR/deriving-smart-pointer-neg.rs:18:10 |
| 19 | + | |
| 20 | +LL | #[derive(SmartPointer)] |
| 21 | + | ^^^^^^^^^^^^ |
| 22 | + | |
| 23 | + = note: this error originates in the derive macro `SmartPointer` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 24 | + |
| 25 | +error: `SmartPointer` can only be derived on `struct`s with at least one field |
| 26 | + --> $DIR/deriving-smart-pointer-neg.rs:25:10 |
| 27 | + | |
| 28 | +LL | #[derive(SmartPointer)] |
| 29 | + | ^^^^^^^^^^^^ |
| 30 | + | |
| 31 | + = note: this error originates in the derive macro `SmartPointer` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 32 | + |
| 33 | +error: `SmartPointer` can only be derived on `struct`s with `#[repr(transparent)]` |
| 34 | + --> $DIR/deriving-smart-pointer-neg.rs:32:10 |
| 35 | + | |
| 36 | +LL | #[derive(SmartPointer)] |
| 37 | + | ^^^^^^^^^^^^ |
| 38 | + | |
| 39 | + = note: this error originates in the derive macro `SmartPointer` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 40 | + |
| 41 | +error[E0392]: lifetime parameter `'a` is never used |
| 42 | + --> $DIR/deriving-smart-pointer-neg.rs:21:16 |
| 43 | + | |
| 44 | +LL | struct NoField<'a, #[pointee] T: ?Sized> {} |
| 45 | + | ^^ unused lifetime parameter |
| 46 | + | |
| 47 | + = help: consider removing `'a`, referring to it in a field, or using a marker such as `PhantomData` |
| 48 | + |
| 49 | +error[E0392]: type parameter `T` is never used |
| 50 | + --> $DIR/deriving-smart-pointer-neg.rs:21:31 |
| 51 | + | |
| 52 | +LL | struct NoField<'a, #[pointee] T: ?Sized> {} |
| 53 | + | ^ unused type parameter |
| 54 | + | |
| 55 | + = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData` |
| 56 | + |
| 57 | +error[E0392]: lifetime parameter `'a` is never used |
| 58 | + --> $DIR/deriving-smart-pointer-neg.rs:28:20 |
| 59 | + | |
| 60 | +LL | struct NoFieldUnit<'a, #[pointee] T: ?Sized>(); |
| 61 | + | ^^ unused lifetime parameter |
| 62 | + | |
| 63 | + = help: consider removing `'a`, referring to it in a field, or using a marker such as `PhantomData` |
| 64 | + |
| 65 | +error[E0392]: type parameter `T` is never used |
| 66 | + --> $DIR/deriving-smart-pointer-neg.rs:28:35 |
| 67 | + | |
| 68 | +LL | struct NoFieldUnit<'a, #[pointee] T: ?Sized>(); |
| 69 | + | ^ unused type parameter |
| 70 | + | |
| 71 | + = help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData` |
| 72 | + |
| 73 | +error: aborting due to 9 previous errors |
| 74 | + |
| 75 | +For more information about this error, try `rustc --explain E0392`. |
0 commit comments