1
1
error: `#[derive(From)]` used on a struct with no fields
2
- --> $DIR/deriving-from-wrong-target.rs:7 :10
2
+ --> $DIR/deriving-from-wrong-target.rs:8 :10
3
3
|
4
4
LL | #[derive(From)]
5
5
| ^^^^
@@ -10,7 +10,7 @@ LL | struct S1;
10
10
= note: `#[derive(From)]` can only be used on structs with exactly one field
11
11
12
12
error: `#[derive(From)]` used on a struct with no fields
13
- --> $DIR/deriving-from-wrong-target.rs:11 :10
13
+ --> $DIR/deriving-from-wrong-target.rs:12 :10
14
14
|
15
15
LL | #[derive(From)]
16
16
| ^^^^
@@ -21,7 +21,7 @@ LL | struct S2 {}
21
21
= note: `#[derive(From)]` can only be used on structs with exactly one field
22
22
23
23
error: `#[derive(From)]` used on a struct with multiple fields
24
- --> $DIR/deriving-from-wrong-target.rs:15 :10
24
+ --> $DIR/deriving-from-wrong-target.rs:16 :10
25
25
|
26
26
LL | #[derive(From)]
27
27
| ^^^^
@@ -32,7 +32,7 @@ LL | struct S3(u32, bool);
32
32
= note: `#[derive(From)]` can only be used on structs with exactly one field
33
33
34
34
error: `#[derive(From)]` used on a struct with multiple fields
35
- --> $DIR/deriving-from-wrong-target.rs:19 :10
35
+ --> $DIR/deriving-from-wrong-target.rs:20 :10
36
36
|
37
37
LL | #[derive(From)]
38
38
| ^^^^
@@ -43,7 +43,7 @@ LL | struct S4 {
43
43
= note: `#[derive(From)]` can only be used on structs with exactly one field
44
44
45
45
error: `#[derive(From)]` used on an enum
46
- --> $DIR/deriving-from-wrong-target.rs:26 :10
46
+ --> $DIR/deriving-from-wrong-target.rs:27 :10
47
47
|
48
48
LL | #[derive(From)]
49
49
| ^^^^
@@ -54,7 +54,7 @@ LL | enum E1 {}
54
54
= note: `#[derive(From)]` can only be used on structs with exactly one field
55
55
56
56
error[E0277]: the size for values of type `T` cannot be known at compilation time
57
- --> $DIR/deriving-from-wrong-target.rs:30 :10
57
+ --> $DIR/deriving-from-wrong-target.rs:31 :10
58
58
|
59
59
LL | #[derive(From)]
60
60
| ^^^^ doesn't have a size known at compile-time
@@ -71,7 +71,7 @@ LL + struct SUnsizedField<T> {
71
71
|
72
72
73
73
error[E0277]: the size for values of type `T` cannot be known at compilation time
74
- --> $DIR/deriving-from-wrong-target.rs:30 :10
74
+ --> $DIR/deriving-from-wrong-target.rs:31 :10
75
75
|
76
76
LL | #[derive(From)]
77
77
| ^^^^ doesn't have a size known at compile-time
@@ -80,7 +80,7 @@ LL | struct SUnsizedField<T: ?Sized> {
80
80
| - this type parameter needs to be `Sized`
81
81
|
82
82
note: required because it appears within the type `SUnsizedField<T>`
83
- --> $DIR/deriving-from-wrong-target.rs:33 :8
83
+ --> $DIR/deriving-from-wrong-target.rs:34 :8
84
84
|
85
85
LL | struct SUnsizedField<T: ?Sized> {
86
86
| ^^^^^^^^^^^^^
@@ -92,7 +92,7 @@ LL + struct SUnsizedField<T> {
92
92
|
93
93
94
94
error[E0277]: the size for values of type `T` cannot be known at compilation time
95
- --> $DIR/deriving-from-wrong-target.rs:34 :11
95
+ --> $DIR/deriving-from-wrong-target.rs:35 :11
96
96
|
97
97
LL | struct SUnsizedField<T: ?Sized> {
98
98
| - this type parameter needs to be `Sized`
0 commit comments