11error: `#[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
33 |
44LL | #[derive(From)]
55 | ^^^^
@@ -10,7 +10,7 @@ LL | struct S1;
1010 = note: `#[derive(From)]` can only be used on structs with exactly one field
1111
1212error: `#[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
1414 |
1515LL | #[derive(From)]
1616 | ^^^^
@@ -21,7 +21,7 @@ LL | struct S2 {}
2121 = note: `#[derive(From)]` can only be used on structs with exactly one field
2222
2323error: `#[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
2525 |
2626LL | #[derive(From)]
2727 | ^^^^
@@ -32,7 +32,7 @@ LL | struct S3(u32, bool);
3232 = note: `#[derive(From)]` can only be used on structs with exactly one field
3333
3434error: `#[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
3636 |
3737LL | #[derive(From)]
3838 | ^^^^
@@ -43,7 +43,7 @@ LL | struct S4 {
4343 = note: `#[derive(From)]` can only be used on structs with exactly one field
4444
4545error: `#[derive(From)]` used on an enum
46- --> $DIR/deriving-from-wrong-target.rs:26 :10
46+ --> $DIR/deriving-from-wrong-target.rs:27 :10
4747 |
4848LL | #[derive(From)]
4949 | ^^^^
@@ -54,7 +54,7 @@ LL | enum E1 {}
5454 = note: `#[derive(From)]` can only be used on structs with exactly one field
5555
5656error[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
5858 |
5959LL | #[derive(From)]
6060 | ^^^^ doesn't have a size known at compile-time
@@ -71,7 +71,7 @@ LL + struct SUnsizedField<T> {
7171 |
7272
7373error[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
7575 |
7676LL | #[derive(From)]
7777 | ^^^^ doesn't have a size known at compile-time
@@ -80,7 +80,7 @@ LL | struct SUnsizedField<T: ?Sized> {
8080 | - this type parameter needs to be `Sized`
8181 |
8282note: 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
8484 |
8585LL | struct SUnsizedField<T: ?Sized> {
8686 | ^^^^^^^^^^^^^
@@ -92,7 +92,7 @@ LL + struct SUnsizedField<T> {
9292 |
9393
9494error[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
9696 |
9797LL | struct SUnsizedField<T: ?Sized> {
9898 | - this type parameter needs to be `Sized`
0 commit comments