summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/self-in-function-arg.rs
blob: 6172ffe1b0347aee9440f8a84b15ea04a82c93b2 (plain)
1
2
3
fn foo(x:i32, self: i32) -> i32 { self } //~ ERROR unexpected `self` parameter in function

fn main() {}