]> git.lizzy.rs Git - rust.git/blob - src/test/ui/empty/empty-struct-braces-expr.stderr
9b6114875e2e5df61e75ea80ab0cda0e8bef9873
[rust.git] / src / test / ui / empty / empty-struct-braces-expr.stderr
1 error[E0423]: expected value, found struct `Empty1`
2   --> $DIR/empty-struct-braces-expr.rs:25:14
3    |
4 LL |     let e1 = Empty1; //~ ERROR expected value, found struct `Empty1`
5    |              ^^^^^^
6    |              |
7    |              did you mean `XEmpty2`?
8    |              did you mean `Empty1 { /* fields */ }`?
9
10 error[E0423]: expected function, found struct `Empty1`
11   --> $DIR/empty-struct-braces-expr.rs:26:14
12    |
13 LL |     let e1 = Empty1(); //~ ERROR expected function, found struct `Empty1`
14    |              ^^^^^^
15    |              |
16    |              did you mean `XEmpty2`?
17    |              did you mean `Empty1 { /* fields */ }`?
18
19 error[E0423]: expected value, found struct variant `E::Empty3`
20   --> $DIR/empty-struct-braces-expr.rs:27:14
21    |
22 LL |     let e3 = E::Empty3; //~ ERROR expected value, found struct variant `E::Empty3`
23    |              ^^^^^^^^^ did you mean `E::Empty3 { /* fields */ }`?
24
25 error[E0423]: expected function, found struct variant `E::Empty3`
26   --> $DIR/empty-struct-braces-expr.rs:28:14
27    |
28 LL |     let e3 = E::Empty3(); //~ ERROR expected function, found struct variant `E::Empty3`
29    |              ^^^^^^^^^ did you mean `E::Empty3 { /* fields */ }`?
30
31 error[E0423]: expected value, found struct `XEmpty1`
32   --> $DIR/empty-struct-braces-expr.rs:30:15
33    |
34 LL |     let xe1 = XEmpty1; //~ ERROR expected value, found struct `XEmpty1`
35    |               ^^^^^^^
36    |               |
37    |               did you mean `XEmpty2`?
38    |               did you mean `XEmpty1 { /* fields */ }`?
39
40 error[E0423]: expected function, found struct `XEmpty1`
41   --> $DIR/empty-struct-braces-expr.rs:31:15
42    |
43 LL |     let xe1 = XEmpty1(); //~ ERROR expected function, found struct `XEmpty1`
44    |               ^^^^^^^
45    |               |
46    |               did you mean `XEmpty2`?
47    |               did you mean `XEmpty1 { /* fields */ }`?
48
49 error[E0599]: no variant named `Empty3` found for type `empty_struct::XE` in the current scope
50   --> $DIR/empty-struct-braces-expr.rs:32:15
51    |
52 LL |     let xe3 = XE::Empty3; //~ ERROR no variant named `Empty3` found for type
53    |               ^^^^^^^^^^ variant not found in `empty_struct::XE`
54    |
55    = note: did you mean `empty_struct::XE::XEmpty3`?
56
57 error[E0599]: no variant named `Empty3` found for type `empty_struct::XE` in the current scope
58   --> $DIR/empty-struct-braces-expr.rs:33:15
59    |
60 LL |     let xe3 = XE::Empty3(); //~ ERROR no variant named `Empty3` found for type
61    |               ^^^^^^^^^^ variant not found in `empty_struct::XE`
62    |
63    = note: did you mean `empty_struct::XE::XEmpty3`?
64
65 error: aborting due to 8 previous errors
66
67 Some errors occurred: E0423, E0599.
68 For more information about an error, try `rustc --explain E0423`.