@@ -5,16 +5,11 @@ LL | if let S { x: _x, y: 2 } = S { x: 1, y: 2 } { println!("Ok"); }
55 | ^ expecting a type here because of type ascription
66 |
77 = note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
8- note: this expression is annotated with type ascription...
8+ note: this expression expects an ascribed type after the colon
99 --> $DIR/E0423.rs:12:36
1010 |
1111LL | if let S { x: _x, y: 2 } = S { x: 1, y: 2 } { println!("Ok"); }
1212 | ^
13- note: ...due to this, which is why a type is expected after
14- --> $DIR/E0423.rs:12:37
15- |
16- LL | if let S { x: _x, y: 2 } = S { x: 1, y: 2 } { println!("Ok"); }
17- | ^
1813 = help: this might be indicative of a syntax error elsewhere
1914
2015error: expected expression, found `==`
@@ -30,16 +25,11 @@ LL | for _ in std::ops::Range { start: 0, end: 10 } {}
3025 | ^ expecting a type here because of type ascription
3126 |
3227 = note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
33- note: this expression is annotated with type ascription...
28+ note: this expression expects an ascribed type after the colon
3429 --> $DIR/E0423.rs:21:32
3530 |
3631LL | for _ in std::ops::Range { start: 0, end: 10 } {}
3732 | ^^^^^
38- note: ...due to this, which is why a type is expected after
39- --> $DIR/E0423.rs:21:37
40- |
41- LL | for _ in std::ops::Range { start: 0, end: 10 } {}
42- | ^
4333 = help: this might be indicative of a syntax error elsewhere
4434
4535error[E0423]: expected function, found struct `Foo`
0 commit comments