about summary refs log tree commit diff
path: root/src/test/ui/empty/empty-struct-braces-expr.stderr
blob: d3e1cebd26fe1e27bedd4909c9322573fc07188b (plain)
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
error[E0423]: expected value, found struct `Empty1`
  --> $DIR/empty-struct-braces-expr.rs:15:14
   |
LL |     let e1 = Empty1; //~ ERROR expected value, found struct `Empty1`
   |              ^^^^^^
   |              |
   |              did you mean `XEmpty2`?
   |              did you mean `Empty1 { /* fields */ }`?

error[E0423]: expected function, found struct `Empty1`
  --> $DIR/empty-struct-braces-expr.rs:16:14
   |
LL |     let e1 = Empty1(); //~ ERROR expected function, found struct `Empty1`
   |              ^^^^^^
   |              |
   |              did you mean `XEmpty2`?
   |              did you mean `Empty1 { /* fields */ }`?

error[E0423]: expected value, found struct variant `E::Empty3`
  --> $DIR/empty-struct-braces-expr.rs:17:14
   |
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`
  --> $DIR/empty-struct-braces-expr.rs:18:14
   |
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`
  --> $DIR/empty-struct-braces-expr.rs:20:15
   |
LL |     let xe1 = XEmpty1; //~ ERROR expected value, found struct `XEmpty1`
   |               ^^^^^^^
   |               |
   |               did you mean `XEmpty2`?
   |               did you mean `XEmpty1 { /* fields */ }`?

error[E0423]: expected function, found struct `XEmpty1`
  --> $DIR/empty-struct-braces-expr.rs:21:15
   |
LL |     let xe1 = XEmpty1(); //~ ERROR expected function, found struct `XEmpty1`
   |               ^^^^^^^
   |               |
   |               did you mean `XEmpty2`?
   |               did you mean `XEmpty1 { /* fields */ }`?

error[E0599]: no variant named `Empty3` found for type `empty_struct::XE` in the current scope
  --> $DIR/empty-struct-braces-expr.rs:22:19
   |
LL |     let xe3 = XE::Empty3; //~ ERROR no variant named `Empty3` found for type
   |               ----^^^^^^
   |               |
   |               variant not found in `empty_struct::XE`
   |
   = help: did you mean `XEmpty3`?

error[E0599]: no variant named `Empty3` found for type `empty_struct::XE` in the current scope
  --> $DIR/empty-struct-braces-expr.rs:23:19
   |
LL |     let xe3 = XE::Empty3(); //~ ERROR no variant named `Empty3` found for type
   |               ----^^^^^^
   |               |
   |               variant not found in `empty_struct::XE`
   |
   = help: did you mean `XEmpty3`?

error: aborting due to 8 previous errors

Some errors occurred: E0423, E0599.
For more information about an error, try `rustc --explain E0423`.