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