]> git.lizzy.rs Git - rust.git/blob - tests/ui/ret-non-nil.rs
Rollup merge of #107102 - compiler-errors:new-solver-new-candidats-4, r=lcnr
[rust.git] / tests / ui / ret-non-nil.rs
1 // error-pattern: `return;` in a function whose return type is not `()`
2
3 fn f() { return; }
4
5 fn g() -> isize { return; }
6
7 fn main() { f(); g(); }