Review comment
This commit is contained in:
parent
81b876b6a3
commit
44a086ef39
10 changed files with 12 additions and 12 deletions
|
@ -3704,8 +3704,8 @@ impl<'a> Parser<'a> {
|
|||
Applicability::MaybeIncorrect,
|
||||
);
|
||||
} else {
|
||||
err.note("type ascription is a nightly only feature that lets \
|
||||
you annotate expressions with a type: `<expr>: <type>`");
|
||||
err.note("type ascription is a nightly-only feature that lets \
|
||||
you annotate an expression with a type: `<expr>: <type>`");
|
||||
err.span_note(
|
||||
lhs_span,
|
||||
"this expression is annotated with type ascription...",
|
||||
|
|
|
@ -4,7 +4,7 @@ error: expected type, found `1`
|
|||
LL | if let S { x: _x, y: 2 } = S { x: 1, y: 2 } { println!("Ok"); }
|
||||
| ^ expecting a type here because of type ascription
|
||||
|
|
||||
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
|
||||
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
|
||||
note: this expression is annotated with type ascription...
|
||||
--> $DIR/E0423.rs:12:36
|
||||
|
|
||||
|
@ -29,7 +29,7 @@ error: expected type, found `0`
|
|||
LL | for _ in std::ops::Range { start: 0, end: 10 } {}
|
||||
| ^ expecting a type here because of type ascription
|
||||
|
|
||||
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
|
||||
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
|
||||
note: this expression is annotated with type ascription...
|
||||
--> $DIR/E0423.rs:21:32
|
||||
|
|
||||
|
|
|
@ -89,7 +89,7 @@ error: expected type, found `4`
|
|||
LL | println!("{}", a: &mut 4);
|
||||
| ^ expecting a type here because of type ascription
|
||||
|
|
||||
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
|
||||
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
|
||||
note: this expression is annotated with type ascription...
|
||||
--> $DIR/issue-22644.rs:34:20
|
||||
|
|
||||
|
|
|
@ -4,7 +4,7 @@ error: expected type, found `42`
|
|||
LL | Test::Drill(field: 42);
|
||||
| ^^ expecting a type here because of type ascription
|
||||
|
|
||||
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
|
||||
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
|
||||
note: this expression is annotated with type ascription...
|
||||
--> $DIR/issue-34255-1.rs:8:17
|
||||
|
|
||||
|
|
|
@ -14,7 +14,7 @@ error: expected type, found keyword `loop`
|
|||
LL | loop { break 'label: loop { break 'label 42; }; }
|
||||
| ^^^^ expecting a type here because of type ascription
|
||||
|
|
||||
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
|
||||
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
|
||||
note: this expression is annotated with type ascription...
|
||||
--> $DIR/lifetime_starts_expressions.rs:6:12
|
||||
|
|
||||
|
|
|
@ -4,7 +4,7 @@ error: expected type, found `3`
|
|||
LL | x: 3
|
||||
| ^ expecting a type here because of type ascription
|
||||
|
|
||||
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
|
||||
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
|
||||
note: this expression is annotated with type ascription...
|
||||
--> $DIR/struct-literal-in-for.rs:13:9
|
||||
|
|
||||
|
|
|
@ -4,7 +4,7 @@ error: expected type, found `3`
|
|||
LL | x: 3
|
||||
| ^ expecting a type here because of type ascription
|
||||
|
|
||||
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
|
||||
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
|
||||
note: this expression is annotated with type ascription...
|
||||
--> $DIR/struct-literal-in-if.rs:13:9
|
||||
|
|
||||
|
|
|
@ -4,7 +4,7 @@ error: expected type, found `3`
|
|||
LL | x: 3
|
||||
| ^ expecting a type here because of type ascription
|
||||
|
|
||||
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
|
||||
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
|
||||
note: this expression is annotated with type ascription...
|
||||
--> $DIR/struct-literal-in-while.rs:13:9
|
||||
|
|
||||
|
|
|
@ -4,7 +4,7 @@ error: expected type, found `3`
|
|||
LL | x: 3
|
||||
| ^ expecting a type here because of type ascription
|
||||
|
|
||||
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
|
||||
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
|
||||
note: this expression is annotated with type ascription...
|
||||
--> $DIR/struct-literal-restrictions-in-lamda.rs:13:9
|
||||
|
|
||||
|
|
|
@ -12,7 +12,7 @@ error: expected type, found `0`
|
|||
LL | println!("test"): 0;
|
||||
| ^ expecting a type here because of type ascription
|
||||
|
|
||||
= note: type ascription is a nightly only feature that lets you annotate expressions with a type: `<expr>: <type>`
|
||||
= note: type ascription is a nightly-only feature that lets you annotate an expression with a type: `<expr>: <type>`
|
||||
note: this expression is annotated with type ascription...
|
||||
--> $DIR/type-ascription-instead-of-statement-end.rs:9:5
|
||||
|
|
||||
|
|
Loading…
Reference in a new issue