about summary refs log tree commit diff
path: root/tests/ui/missing/missing-return.stderr
blob: b2d202b9b572c3e57020ddfbdffb5f82da883a85 (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0308]: mismatched types
  --> $DIR/missing-return.rs:1:11
   |
LL | fn f() -> isize { }
   |    -      ^^^^^ expected `isize`, found `()`
   |    |
   |    implicitly returns `()` as its body has no tail or `return` expression

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.