summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/fn-colon-return-type.rs
blob: 0001ef57c99024d997173271754a4468739aec17 (plain)
1
2
3
4
5
6
fn foo(x: i32): i32 {
//~^ ERROR return types are denoted using `->`
    x
}

fn main() {}