rust/tests/ui/error-codes/E0069.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
115 B
Rust
Raw Normal View History

2016-05-20 08:18:30 -05:00
fn foo() -> u8 {
2016-08-04 22:48:24 -05:00
return;
//~^ ERROR `return;` in a function whose return type is not `()`
2016-05-20 08:18:30 -05:00
}
fn main() {
}