]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coercion-missing-tail-expected-type.stderr
Rollup merge of #42207 - Nashenas88:remove_fragment_info, r=eddyb
[rust.git] / src / test / ui / coercion-missing-tail-expected-type.stderr
1 error[E0308]: mismatched types
2   --> $DIR/coercion-missing-tail-expected-type.rs:13:28
3    |
4 13 |   fn plus_one(x: i32) -> i32 {
5    |  ____________________________^
6 14 | |     x + 1;
7 15 | | }
8    | |_^ expected i32, found ()
9    |
10    = note: expected type `i32`
11               found type `()`
12 help: consider removing this semicolon:
13   --> $DIR/coercion-missing-tail-expected-type.rs:14:10
14    |
15 14 |     x + 1;
16    |          ^
17
18 error: aborting due to previous error(s)
19