]> git.lizzy.rs Git - rust.git/blob - src/test/ui/ret-non-nil.rs
Merge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29
[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(); }