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
|
|
|
|
|
2019-09-22 13:27:55 -05:00
|
|
|
LL | struct Empty1 {}
|
|
|
|
| ---------------- `Empty1` defined here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let e1 = Empty1;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^
|
|
|
|
| |
|
|
|
|
| did you mean `Empty1 { /* fields */ }`?
|
2019-01-09 13:11:00 -06:00
|
|
|
| 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
|
|
|
|
|
2019-09-22 13:27:55 -05:00
|
|
|
LL | struct Empty1 {}
|
|
|
|
| ---------------- `Empty1` defined here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let e1 = Empty1();
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^
|
|
|
|
| |
|
|
|
|
| did you mean `Empty1 { /* fields */ }`?
|
2019-01-09 13:11:00 -06:00
|
|
|
| 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
|
|
|
|
|
2019-09-22 13:27:55 -05:00
|
|
|
LL | Empty3 {}
|
|
|
|
| --------- `E::Empty3` defined here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let e3 = E::Empty3;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^ 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
|
|
|
|
|
2019-09-22 13:27:55 -05:00
|
|
|
LL | Empty3 {}
|
|
|
|
| --------- `E::Empty3` defined here
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let e3 = E::Empty3();
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^ 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
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let xe1 = XEmpty1;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
| |
|
|
|
|
| did you mean `XEmpty1 { /* fields */ }`?
|
2019-01-09 13:11:00 -06:00
|
|
|
| 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
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let xe1 = XEmpty1();
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^
|
|
|
|
| |
|
|
|
|
| did you mean `XEmpty1 { /* fields */ }`?
|
2019-01-09 13:11:00 -06:00
|
|
|
| help: a unit struct with a similar name exists: `XEmpty2`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-04-08 16:58:18 -05:00
|
|
|
error[E0599]: no variant or associated item 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
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let xe3 = XE::Empty3;
|
2019-03-10 18:20:15 -05:00
|
|
|
| ^^^^^^
|
|
|
|
| |
|
2019-04-08 16:58:18 -05:00
|
|
|
| variant or associated item not found in `empty_struct::XE`
|
|
|
|
| help: there is a variant with a similar name: `XEmpty3`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-04-08 16:58:18 -05:00
|
|
|
error[E0599]: no variant or associated item 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
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let xe3 = XE::Empty3();
|
2019-03-10 18:20:15 -05:00
|
|
|
| ^^^^^^
|
|
|
|
| |
|
2019-04-08 16:58:18 -05:00
|
|
|
| variant or associated item not found in `empty_struct::XE`
|
|
|
|
| help: there is a variant with a similar name: `XEmpty3`
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-04-08 16:58:18 -05:00
|
|
|
error: no variant `Empty1` in enum `empty_struct::XE`
|
|
|
|
--> $DIR/empty-struct-braces-expr.rs:25:9
|
|
|
|
|
|
|
|
|
LL | XE::Empty1 {};
|
|
|
|
| ^^^^^^ help: there is a variant with a similar name: `XEmpty3`
|
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2019-04-17 12:26:38 -05:00
|
|
|
Some errors have detailed explanations: E0423, E0599.
|
2018-08-08 07:28:26 -05:00
|
|
|
For more information about an error, try `rustc --explain E0423`.
|