rust/src/test/ui/liveness/liveness-missing-ret2.stderr
2018-12-30 15:41:19 -08:00

15 lines
421 B
Plaintext

error[E0308]: mismatched types
--> $DIR/liveness-missing-ret2.rs:1:11
|
LL | fn f() -> isize { //~ ERROR mismatched types
| - ^^^^^ expected isize, found ()
| |
| this function's body doesn't return the expected type
|
= note: expected type `isize`
found type `()`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.