File: non-exhaustive-ctor.disabled.stderr

package info (click to toggle)
rustc 1.87.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 925,564 kB
  • sloc: xml: 158,127; python: 36,039; javascript: 19,761; sh: 19,737; cpp: 18,981; ansic: 13,133; asm: 4,376; makefile: 710; perl: 29; lisp: 28; ruby: 19; sql: 11
file content (86 lines) | stat: -rw-r--r-- 3,308 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
error[E0658]: default values on fields are experimental
  --> $DIR/non-exhaustive-ctor.rs:9:22
   |
LL |         pub field: () = (),
   |                      ^^^^^
   |
   = note: see issue #132162 <https://github.com/rust-lang/rust/issues/132162> for more information
   = help: add `#![feature(default_field_values)]` to the crate attributes to enable
   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: default values on fields are experimental
  --> $DIR/non-exhaustive-ctor.rs:11:25
   |
LL |         pub field1: Priv = Priv,
   |                         ^^^^^^^
   |
   = note: see issue #132162 <https://github.com/rust-lang/rust/issues/132162> for more information
   = help: add `#![feature(default_field_values)]` to the crate attributes to enable
   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: default values on fields are experimental
  --> $DIR/non-exhaustive-ctor.rs:13:25
   |
LL |         pub field2: Priv = Priv,
   |                         ^^^^^^^
   |
   = note: see issue #132162 <https://github.com/rust-lang/rust/issues/132162> for more information
   = help: add `#![feature(default_field_values)]` to the crate attributes to enable
   = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0797]: base expression required after `..`
  --> $DIR/non-exhaustive-ctor.rs:20:19
   |
LL |     let _ = S { .. }; // ok
   |                   ^
   |
help: add `#![feature(default_field_values)]` to the crate attributes to enable default values on `struct` fields
   |
LL + #![feature(default_field_values)]
   |
help: add a base expression here
   |
LL |     let _ = S { ../* expr */ }; // ok
   |                   ++++++++++

error[E0797]: base expression required after `..`
  --> $DIR/non-exhaustive-ctor.rs:22:30
   |
LL |     let _ = S { field: (), .. }; // ok
   |                              ^
   |
help: add `#![feature(default_field_values)]` to the crate attributes to enable default values on `struct` fields
   |
LL + #![feature(default_field_values)]
   |
help: add a base expression here
   |
LL |     let _ = S { field: (), ../* expr */ }; // ok
   |                              ++++++++++

error[E0063]: missing fields `field`, `field1` and `field2` in initializer of `S`
  --> $DIR/non-exhaustive-ctor.rs:24:13
   |
LL |     let _ = S { };
   |             ^ missing `field`, `field1` and `field2`
   |
help: all remaining fields have default values, if you added `#![feature(default_field_values)]` to your crate you could use those values with `..`
   |
LL |     let _ = S { .. };
   |                 ++

error[E0063]: missing fields `field1` and `field2` in initializer of `S`
  --> $DIR/non-exhaustive-ctor.rs:26:13
   |
LL |     let _ = S { field: () };
   |             ^ missing `field1` and `field2`
   |
help: all remaining fields have default values, if you added `#![feature(default_field_values)]` to your crate you could use those values with `..`
   |
LL |     let _ = S { field: (), .. };
   |                          ++++

error: aborting due to 7 previous errors

Some errors have detailed explanations: E0063, E0658, E0797.
For more information about an error, try `rustc --explain E0063`.