summaryrefslogtreecommitdiff
path: root/tests/ui/ret-non-nil.rs
blob: 86c02bf38e6f23d7e5c6222fb317d4f19fa1a3b3 (plain)
1
2
3
4
5
6
7
// error-pattern: `return;` in a function whose return type is not `()`

fn f() { return; }

fn g() -> isize { return; }

fn main() { f(); g(); }