summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0069.rs
blob: a4ba9fd8debc9e695a9b1a4cf09bad9b456839a1 (plain)
1
2
3
4
5
6
7
fn foo() -> u8 {
    return;
    //~^ ERROR `return;` in a function whose return type is not `()`
}

fn main() {
}