rust/src/test/ui/empty/empty-struct-braces-expr.stderr

71 lines
2.9 KiB
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error[E0423]: expected value, found struct `Empty1`
2018-12-25 09:56:47 -06:00
--> $DIR/empty-struct-braces-expr.rs:15:14
2018-08-08 07:28:26 -05:00
|
LL | let e1 = Empty1; //~ ERROR expected value, found struct `Empty1`
| ^^^^^^
| |
| did you mean `Empty1 { /* fields */ }`?
| help: a unit struct with a similar name exists: `XEmpty2`
2018-08-08 07:28:26 -05:00
error[E0423]: expected function, found struct `Empty1`
2018-12-25 09:56:47 -06:00
--> $DIR/empty-struct-braces-expr.rs:16:14
2018-08-08 07:28:26 -05:00
|
LL | let e1 = Empty1(); //~ ERROR expected function, found struct `Empty1`
| ^^^^^^
| |
| did you mean `Empty1 { /* fields */ }`?
| help: a unit struct with a similar name exists: `XEmpty2`
2018-08-08 07:28:26 -05:00
error[E0423]: expected value, found struct variant `E::Empty3`
2018-12-25 09:56:47 -06:00
--> $DIR/empty-struct-braces-expr.rs:17:14
2018-08-08 07:28:26 -05:00
|
LL | let e3 = E::Empty3; //~ ERROR expected value, found struct variant `E::Empty3`
| ^^^^^^^^^ did you mean `E::Empty3 { /* fields */ }`?
error[E0423]: expected function, found struct variant `E::Empty3`
2018-12-25 09:56:47 -06:00
--> $DIR/empty-struct-braces-expr.rs:18:14
2018-08-08 07:28:26 -05:00
|
LL | let e3 = E::Empty3(); //~ ERROR expected function, found struct variant `E::Empty3`
| ^^^^^^^^^ did you mean `E::Empty3 { /* fields */ }`?
error[E0423]: expected value, found struct `XEmpty1`
2018-12-25 09:56:47 -06:00
--> $DIR/empty-struct-braces-expr.rs:20:15
2018-08-08 07:28:26 -05:00
|
LL | let xe1 = XEmpty1; //~ ERROR expected value, found struct `XEmpty1`
| ^^^^^^^
| |
| did you mean `XEmpty1 { /* fields */ }`?
| help: a unit struct with a similar name exists: `XEmpty2`
2018-08-08 07:28:26 -05:00
error[E0423]: expected function, found struct `XEmpty1`
2018-12-25 09:56:47 -06:00
--> $DIR/empty-struct-braces-expr.rs:21:15
2018-08-08 07:28:26 -05:00
|
LL | let xe1 = XEmpty1(); //~ ERROR expected function, found struct `XEmpty1`
| ^^^^^^^
| |
| did you mean `XEmpty1 { /* fields */ }`?
| help: a unit struct with a similar name exists: `XEmpty2`
2018-08-08 07:28:26 -05:00
error[E0599]: no variant named `Empty3` found for type `empty_struct::XE` in the current scope
2018-12-07 12:15:36 -06:00
--> $DIR/empty-struct-braces-expr.rs:22:19
2018-08-08 07:28:26 -05:00
|
LL | let xe3 = XE::Empty3; //~ ERROR no variant named `Empty3` found for type
2018-12-07 12:15:36 -06:00
| ----^^^^^^
| | |
| | help: did you mean: `XEmpty3`
2018-12-07 12:15:36 -06:00
| variant not found in `empty_struct::XE`
2018-08-08 07:28:26 -05:00
error[E0599]: no variant named `Empty3` found for type `empty_struct::XE` in the current scope
2018-12-07 12:15:36 -06:00
--> $DIR/empty-struct-braces-expr.rs:23:19
2018-08-08 07:28:26 -05:00
|
LL | let xe3 = XE::Empty3(); //~ ERROR no variant named `Empty3` found for type
2018-12-07 12:15:36 -06:00
| ----^^^^^^
| | |
| | help: did you mean: `XEmpty3`
2018-12-07 12:15:36 -06:00
| variant not found in `empty_struct::XE`
2018-08-08 07:28:26 -05:00
error: aborting due to 8 previous errors
Some errors occurred: E0423, E0599.
For more information about an error, try `rustc --explain E0423`.