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