about summary refs log tree commit diff
path: root/tests/ui/return/suggest-a-value.rs
blob: 7d23c0c44b7811a30c2111ecd4026efebb2d401c (plain)
1
2
3
4
5
6
fn test() -> (i32,) {
    return;
    //~^ ERROR `return;` in a function whose return type is not `()`
}

fn main() {}