]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type/type-ascription-instead-of-statement-end.stderr
Merge commit 'cd4810de42c57b64b74dae09c530a4c3a41f87b9' into libgccjit-codegen
[rust.git] / src / test / ui / type / type-ascription-instead-of-statement-end.stderr
1 error: expected type, found `0`
2   --> $DIR/type-ascription-instead-of-statement-end.rs:5:5
3    |
4 LL |     println!("test"):
5    |                     - help: try using a semicolon: `;`
6 LL |     0;
7    |     ^ expected type
8    |
9    = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
10    = note: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information
11
12 error: expected type, found `0`
13   --> $DIR/type-ascription-instead-of-statement-end.rs:9:23
14    |
15 LL |     println!("test"): 0;
16    |                     - ^ expected type
17    |                     |
18    |                     tried to parse a type due to this type ascription
19    |
20    = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
21    = note: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information
22
23 error: aborting due to 2 previous errors
24