2018-08-08 14:28:26 +02:00
|
|
|
error[E0423]: expected value, found struct `Empty1`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/empty-struct-braces-expr.rs:15:14
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-09-22 11:27:55 -07:00
|
|
|
LL | struct Empty1 {}
|
|
|
|
| ---------------- `Empty1` defined here
|
|
|
|
...
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let e1 = Empty1;
|
2018-08-08 14:28:26 +02:00
|
|
|
| ^^^^^^
|
2021-06-10 13:52:00 +02:00
|
|
|
|
|
2019-10-14 17:20:50 -07:00
|
|
|
::: $DIR/auxiliary/empty-struct.rs:2:1
|
|
|
|
|
|
|
|
|
LL | pub struct XEmpty2;
|
2022-02-13 16:27:59 +01:00
|
|
|
| ------------------ similarly named unit struct `XEmpty2` defined here
|
2020-07-09 17:42:07 -07:00
|
|
|
|
|
|
|
|
help: use struct literal syntax instead
|
|
|
|
|
|
|
|
|
LL | let e1 = Empty1 {};
|
2021-06-21 19:07:19 -07:00
|
|
|
| ~~~~~~~~~
|
2020-08-09 20:29:39 -07:00
|
|
|
help: a unit struct with a similar name exists
|
|
|
|
|
|
|
|
|
LL | let e1 = XEmpty2;
|
2021-06-21 19:07:19 -07:00
|
|
|
| ~~~~~~~
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error[E0423]: expected value, found struct `XEmpty1`
|
2019-10-14 17:20:50 -07:00
|
|
|
--> $DIR/empty-struct-braces-expr.rs:22:15
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let xe1 = XEmpty1;
|
2018-08-08 14:28:26 +02:00
|
|
|
| ^^^^^^^
|
2021-06-10 13:52:00 +02:00
|
|
|
|
|
2020-08-09 21:14:59 -07:00
|
|
|
::: $DIR/auxiliary/empty-struct.rs:1:1
|
2019-10-14 17:20:50 -07:00
|
|
|
|
|
2020-08-09 21:14:59 -07:00
|
|
|
LL | pub struct XEmpty1 {}
|
|
|
|
| ------------------ `XEmpty1` defined here
|
2019-10-14 17:20:50 -07:00
|
|
|
LL | pub struct XEmpty2;
|
2022-02-13 16:27:59 +01:00
|
|
|
| ------------------ similarly named unit struct `XEmpty2` defined here
|
2020-07-09 17:42:07 -07:00
|
|
|
|
|
|
|
|
help: use struct literal syntax instead
|
|
|
|
|
|
|
|
|
LL | let xe1 = XEmpty1 {};
|
2021-06-21 19:07:19 -07:00
|
|
|
| ~~~~~~~~~~
|
2020-08-09 20:29:39 -07:00
|
|
|
help: a unit struct with a similar name exists
|
|
|
|
|
|
|
|
|
LL | let xe1 = XEmpty2;
|
2021-06-21 19:07:19 -07:00
|
|
|
| ~~~~~~~
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2022-10-05 05:35:34 +00:00
|
|
|
error[E0423]: expected function, tuple struct or tuple variant, found struct `Empty1`
|
|
|
|
--> $DIR/empty-struct-braces-expr.rs:16:14
|
|
|
|
|
|
|
|
|
LL | struct Empty1 {}
|
|
|
|
| ---------------- `Empty1` defined here
|
|
|
|
...
|
|
|
|
LL | let e1 = Empty1();
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
::: $DIR/auxiliary/empty-struct.rs:2:1
|
|
|
|
|
|
|
|
|
LL | pub struct XEmpty2;
|
|
|
|
| ------------------ similarly named unit struct `XEmpty2` defined here
|
|
|
|
|
|
|
|
|
help: use struct literal syntax instead
|
|
|
|
|
|
|
|
|
LL | let e1 = Empty1 {};
|
|
|
|
| ~~~~~~~~~
|
|
|
|
help: a unit struct with a similar name exists
|
|
|
|
|
|
|
|
|
LL | let e1 = XEmpty2();
|
|
|
|
| ~~~~~~~
|
|
|
|
|
2022-10-25 20:15:15 +04:00
|
|
|
error[E0533]: expected value, found struct variant `E::Empty3`
|
|
|
|
--> $DIR/empty-struct-braces-expr.rs:18:14
|
|
|
|
|
|
|
|
|
LL | let e3 = E::Empty3;
|
|
|
|
| ^^^^^^^^^ not a value
|
|
|
|
|
|
|
|
error[E0533]: expected value, found struct variant `E::Empty3`
|
|
|
|
--> $DIR/empty-struct-braces-expr.rs:19:14
|
|
|
|
|
|
|
|
|
LL | let e3 = E::Empty3();
|
|
|
|
| ^^^^^^^^^ not a value
|
|
|
|
|
2019-10-14 17:20:50 -07:00
|
|
|
error[E0423]: expected function, tuple struct or tuple variant, found struct `XEmpty1`
|
|
|
|
--> $DIR/empty-struct-braces-expr.rs:23:15
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let xe1 = XEmpty1();
|
2020-07-09 17:42:07 -07:00
|
|
|
| ^^^^^^^^^
|
2021-06-10 13:52:00 +02:00
|
|
|
|
|
2020-08-09 21:14:59 -07:00
|
|
|
::: $DIR/auxiliary/empty-struct.rs:1:1
|
2020-07-09 17:42:07 -07:00
|
|
|
|
|
2020-08-09 21:14:59 -07:00
|
|
|
LL | pub struct XEmpty1 {}
|
|
|
|
| ------------------ `XEmpty1` defined here
|
2020-08-09 20:29:39 -07:00
|
|
|
LL | pub struct XEmpty2;
|
2022-02-13 16:27:59 +01:00
|
|
|
| ------------------ similarly named unit struct `XEmpty2` defined here
|
2020-07-09 17:42:07 -07:00
|
|
|
|
|
|
|
|
help: use struct literal syntax instead
|
2019-10-14 17:20:50 -07:00
|
|
|
|
|
2020-07-09 17:42:07 -07:00
|
|
|
LL | let xe1 = XEmpty1 {};
|
2021-06-21 19:07:19 -07:00
|
|
|
| ~~~~~~~~~~
|
2020-08-09 20:29:39 -07:00
|
|
|
help: a unit struct with a similar name exists
|
|
|
|
|
|
|
|
|
LL | let xe1 = XEmpty2();
|
2021-06-21 19:07:19 -07:00
|
|
|
| ~~~~~~~
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2023-01-06 19:21:47 +00:00
|
|
|
error[E0599]: no variant or associated item named `Empty3` found for enum `empty_struct::XE` in the current scope
|
2019-10-14 17:20:50 -07:00
|
|
|
--> $DIR/empty-struct-braces-expr.rs:25:19
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let xe3 = XE::Empty3;
|
2019-03-10 16:20:15 -07:00
|
|
|
| ^^^^^^
|
|
|
|
| |
|
2022-12-13 16:57:34 -08:00
|
|
|
| variant or associated item not found in `XE`
|
2019-04-08 17:58:18 -04:00
|
|
|
| help: there is a variant with a similar name: `XEmpty3`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2023-01-06 19:21:47 +00:00
|
|
|
error[E0599]: no variant or associated item named `Empty3` found for enum `empty_struct::XE` in the current scope
|
2019-10-14 17:20:50 -07:00
|
|
|
--> $DIR/empty-struct-braces-expr.rs:26:19
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let xe3 = XE::Empty3();
|
2019-03-10 16:20:15 -07:00
|
|
|
| ^^^^^^
|
|
|
|
| |
|
2022-12-13 16:57:34 -08:00
|
|
|
| variant or associated item not found in `XE`
|
2019-04-08 17:58:18 -04:00
|
|
|
| help: there is a variant with a similar name: `XEmpty3`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2020-01-08 08:05:31 -08:00
|
|
|
error[E0599]: no variant named `Empty1` found for enum `empty_struct::XE`
|
2019-10-14 17:20:50 -07:00
|
|
|
--> $DIR/empty-struct-braces-expr.rs:28:9
|
2019-04-08 17:58:18 -04:00
|
|
|
|
|
|
|
|
LL | XE::Empty1 {};
|
|
|
|
| ^^^^^^ help: there is a variant with a similar name: `XEmpty3`
|
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2022-10-25 20:15:15 +04:00
|
|
|
Some errors have detailed explanations: E0423, E0533, E0599.
|
2018-08-08 14:28:26 +02:00
|
|
|
For more information about an error, try `rustc --explain E0423`.
|