]>
Commit | Line | Data |
---|---|---|
94b46f34 XL |
1 | error: expected type, found `1` |
2 | --> $DIR/E0423.rs:22:39 | |
3 | | | |
4 | LL | if let S { x: _x, y: 2 } = S { x: 1, y: 2 } { println!("Ok"); } | |
5 | | ^ expecting a type here because of type ascription | |
6 | ||
7 | error: expected expression, found `==` | |
8 | --> $DIR/E0423.rs:25:13 | |
9 | | | |
10 | LL | if T {} == T {} { println!("Ok"); } | |
11 | | ^^ expected expression | |
12 | ||
13 | error: expected type, found `0` | |
14 | --> $DIR/E0423.rs:31:39 | |
15 | | | |
16 | LL | for _ in std::ops::Range { start: 0, end: 10 } {} | |
17 | | ^ expecting a type here because of type ascription | |
18 | ||
2c00a5a8 XL |
19 | error[E0423]: expected function, found struct `Foo` |
20 | --> $DIR/E0423.rs:14:13 | |
21 | | | |
0531ce1d | 22 | LL | let f = Foo(); //~ ERROR E0423 |
94b46f34 XL |
23 | | ^^^ |
24 | | | | |
25 | | did you mean `foo`? | |
26 | | did you mean `Foo { /* fields */ }`? | |
27 | ||
28 | error[E0423]: expected value, found struct `S` | |
29 | --> $DIR/E0423.rs:22:32 | |
30 | | | |
31 | LL | if let S { x: _x, y: 2 } = S { x: 1, y: 2 } { println!("Ok"); } | |
32 | | ^ did you mean `(S { /* fields */ })`? | |
33 | ||
34 | error[E0423]: expected value, found struct `T` | |
35 | --> $DIR/E0423.rs:25:8 | |
36 | | | |
37 | LL | if T {} == T {} { println!("Ok"); } | |
38 | | ^ did you mean `(T { /* fields */ })`? | |
39 | ||
40 | error[E0423]: expected value, found struct `std::ops::Range` | |
41 | --> $DIR/E0423.rs:31:14 | |
42 | | | |
43 | LL | for _ in std::ops::Range { start: 0, end: 10 } {} | |
44 | | ^^^^^^^^^^^^^^^ did you mean `(std::ops::Range { /* fields */ })`? | |
2c00a5a8 | 45 | |
94b46f34 | 46 | error: aborting due to 7 previous errors |
2c00a5a8 | 47 | |
0531ce1d | 48 | For more information about this error, try `rustc --explain E0423`. |