]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/type-ascription-instead-of-statement-end.stderr
02a80d86c846d58eea09117feddb9afa67510e4a
[rust.git] / src / test / ui / suggestions / type-ascription-instead-of-statement-end.stderr
1 error: expected type, found `0`
2   --> $DIR/type-ascription-instead-of-statement-end.rs:15:5
3    |
4 LL |     println!("test"):
5    |                     - help: did you mean to use `;` here?
6 LL |     0; //~ ERROR expected type, found `0`
7    |     ^ expecting a type here because of type ascription
8
9 error: expected type, found `0`
10   --> $DIR/type-ascription-instead-of-statement-end.rs:19:23
11    |
12 LL |     println!("test"): 0; //~ ERROR expected type, found `0`
13    |                       ^ expecting a type here because of type ascription
14
15 error: aborting due to 2 previous errors
16