You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/structs/default-field-values/failures.stderr
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -28,19 +28,19 @@ LL | pub struct S;
28
28
|
29
29
30
30
error: missing field `bar` in initializer
31
-
--> $DIR/failures.rs:55:19
31
+
--> $DIR/failures.rs:61:19
32
32
|
33
33
LL | let _ = Bar { .. };
34
34
| ^ fields that do not have a defaulted value must be provided explicitly
35
35
36
36
error: missing field `bar` in initializer
37
-
--> $DIR/failures.rs:56:27
37
+
--> $DIR/failures.rs:62:27
38
38
|
39
39
LL | let _ = Bar { baz: 0, .. };
40
40
| ^ fields that do not have a defaulted value must be provided explicitly
41
41
42
42
error[E0308]: mismatched types
43
-
--> $DIR/failures.rs:60:17
43
+
--> $DIR/failures.rs:66:17
44
44
|
45
45
LL | let _ = Rak(..);
46
46
| --- ^^ expected `i32`, found `RangeFull`
@@ -53,19 +53,19 @@ note: tuple struct defined here
53
53
LL | pub struct Rak(i32 = 42);
54
54
| ^^^
55
55
help: you might have meant to use `..` to skip providing a value for expected fields, but this is only supported on non-tuple struct literals; it is instead interpreted as a `std::ops::RangeFull` literal
56
-
--> $DIR/failures.rs:60:17
56
+
--> $DIR/failures.rs:66:17
57
57
|
58
58
LL | let _ = Rak(..);
59
59
| ^^
60
60
61
61
error[E0061]: this struct takes 1 argument but 2 arguments were supplied
62
-
--> $DIR/failures.rs:62:13
62
+
--> $DIR/failures.rs:68:13
63
63
|
64
64
LL | let _ = Rak(0, ..);
65
65
| ^^^ -- unexpected argument #2 of type `RangeFull`
66
66
|
67
67
help: you might have meant to use `..` to skip providing a value for expected fields, but this is only supported on non-tuple struct literals; it is instead interpreted as a `std::ops::RangeFull` literal
68
-
--> $DIR/failures.rs:62:20
68
+
--> $DIR/failures.rs:68:20
69
69
|
70
70
LL | let _ = Rak(0, ..);
71
71
| ^^
@@ -81,13 +81,13 @@ LL + let _ = Rak(0);
81
81
|
82
82
83
83
error[E0061]: this struct takes 1 argument but 2 arguments were supplied
84
-
--> $DIR/failures.rs:64:13
84
+
--> $DIR/failures.rs:70:13
85
85
|
86
86
LL | let _ = Rak(.., 0);
87
87
| ^^^ -- unexpected argument #1 of type `RangeFull`
88
88
|
89
89
help: you might have meant to use `..` to skip providing a value for expected fields, but this is only supported on non-tuple struct literals; it is instead interpreted as a `std::ops::RangeFull` literal
0 commit comments