]> git.lizzy.rs Git - rust.git/blob - src/test/ui/ret-non-nil.rs
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[rust.git] / src / test / 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(); }