summaryrefslogtreecommitdiffstats
path: root/tests/ui/ret-non-nil.stderr
blob: 2029c6d9d81d4e185761eca5b9c6c05b9d0e3106 (plain)
1
2
3
4
5
6
7
8
9
10
11
error[E0069]: `return;` in a function whose return type is not `()`
  --> $DIR/ret-non-nil.rs:5:19
   |
LL | fn g() -> isize { return; }
   |           -----   ^^^^^^ return type is not `()`
   |           |
   |           expected `isize` because of this return type

error: aborting due to previous error

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