2024-07-03 13:50:56 -05:00
|
|
|
error: `SmartPointer` can only be derived on `struct`s with `#[repr(transparent)]`
|
2024-07-31 09:50:45 -05:00
|
|
|
--> $DIR/deriving-smart-pointer-neg.rs:6:10
|
2024-07-03 13:50:56 -05:00
|
|
|
|
|
|
|
|
LL | #[derive(SmartPointer)]
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in the derive macro `SmartPointer` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
2024-08-23 08:07:18 -05:00
|
|
|
error: `SmartPointer` can only be derived on `struct`s with at least one field
|
2024-07-31 09:50:45 -05:00
|
|
|
--> $DIR/deriving-smart-pointer-neg.rs:12:10
|
2024-07-03 13:50:56 -05:00
|
|
|
|
|
|
|
|
LL | #[derive(SmartPointer)]
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in the derive macro `SmartPointer` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: `SmartPointer` can only be derived on `struct`s with at least one field
|
2024-07-31 09:50:45 -05:00
|
|
|
--> $DIR/deriving-smart-pointer-neg.rs:19:10
|
2024-07-03 13:50:56 -05:00
|
|
|
|
|
|
|
|
LL | #[derive(SmartPointer)]
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in the derive macro `SmartPointer` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
2024-08-23 08:07:18 -05:00
|
|
|
error: `SmartPointer` can only be derived on `struct`s that are generic over at least one type
|
2024-07-31 09:50:45 -05:00
|
|
|
--> $DIR/deriving-smart-pointer-neg.rs:26:10
|
2024-07-03 13:50:56 -05:00
|
|
|
|
|
|
|
|
LL | #[derive(SmartPointer)]
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in the derive macro `SmartPointer` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
2024-08-23 08:07:18 -05:00
|
|
|
error: exactly one generic type parameter must be marked as #[pointee] to derive SmartPointer traits
|
|
|
|
--> $DIR/deriving-smart-pointer-neg.rs:31:10
|
|
|
|
|
|
|
|
|
LL | #[derive(SmartPointer)]
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in the derive macro `SmartPointer` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: only one type parameter can be marked as `#[pointee]` when deriving SmartPointer traits
|
|
|
|
--> $DIR/deriving-smart-pointer-neg.rs:40:39
|
|
|
|
|
|
|
|
|
LL | struct TooManyPointees<'a, #[pointee] A: ?Sized, #[pointee] B: ?Sized>((&'a A, &'a B));
|
|
|
|
| ^ ^
|
|
|
|
|
2024-07-03 13:50:56 -05:00
|
|
|
error: `SmartPointer` can only be derived on `struct`s with `#[repr(transparent)]`
|
2024-08-23 08:07:18 -05:00
|
|
|
--> $DIR/deriving-smart-pointer-neg.rs:43:10
|
2024-07-03 13:50:56 -05:00
|
|
|
|
|
|
|
|
LL | #[derive(SmartPointer)]
|
|
|
|
| ^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: this error originates in the derive macro `SmartPointer` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
2024-07-31 09:50:45 -05:00
|
|
|
error: `derive(SmartPointer)` requires T to be marked `?Sized`
|
2024-08-23 08:07:18 -05:00
|
|
|
--> $DIR/deriving-smart-pointer-neg.rs:51:36
|
2024-07-31 09:50:45 -05:00
|
|
|
|
|
|
|
|
LL | struct NoMaybeSized<'a, #[pointee] T> {
|
|
|
|
| ^
|
|
|
|
|
2024-07-03 13:50:56 -05:00
|
|
|
error[E0392]: lifetime parameter `'a` is never used
|
2024-08-23 08:07:18 -05:00
|
|
|
--> $DIR/deriving-smart-pointer-neg.rs:15:16
|
2024-07-03 13:50:56 -05:00
|
|
|
|
|
|
|
|
LL | struct NoField<'a, #[pointee] T: ?Sized> {}
|
|
|
|
| ^^ unused lifetime parameter
|
|
|
|
|
|
|
|
|
= help: consider removing `'a`, referring to it in a field, or using a marker such as `PhantomData`
|
|
|
|
|
|
|
|
error[E0392]: type parameter `T` is never used
|
2024-08-23 08:07:18 -05:00
|
|
|
--> $DIR/deriving-smart-pointer-neg.rs:15:31
|
2024-07-03 13:50:56 -05:00
|
|
|
|
|
|
|
|
LL | struct NoField<'a, #[pointee] T: ?Sized> {}
|
|
|
|
| ^ unused type parameter
|
|
|
|
|
|
|
|
|
= help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
|
|
|
|
|
|
|
|
error[E0392]: lifetime parameter `'a` is never used
|
2024-08-23 08:07:18 -05:00
|
|
|
--> $DIR/deriving-smart-pointer-neg.rs:22:20
|
2024-07-03 13:50:56 -05:00
|
|
|
|
|
|
|
|
LL | struct NoFieldUnit<'a, #[pointee] T: ?Sized>();
|
|
|
|
| ^^ unused lifetime parameter
|
|
|
|
|
|
|
|
|
= help: consider removing `'a`, referring to it in a field, or using a marker such as `PhantomData`
|
|
|
|
|
|
|
|
error[E0392]: type parameter `T` is never used
|
2024-08-23 08:07:18 -05:00
|
|
|
--> $DIR/deriving-smart-pointer-neg.rs:22:35
|
2024-07-03 13:50:56 -05:00
|
|
|
|
|
|
|
|
LL | struct NoFieldUnit<'a, #[pointee] T: ?Sized>();
|
|
|
|
| ^ unused type parameter
|
|
|
|
|
|
|
|
|
= help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
|
|
|
|
|
2024-08-23 08:07:18 -05:00
|
|
|
error: aborting due to 12 previous errors
|
2024-07-03 13:50:56 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0392`.
|