summary refs log tree commit diff
path: root/src/test/ui/parser/issue-62660.rs
blob: 4f866b78976612a1e0ebaba7f5efbc64ec4d614e (plain)
1
2
3
4
5
6
7
8
9
10
11
// Regression test for issue #62660: if a receiver's type does not
// successfully parse, emit the correct error instead of ICE-ing the compiler.

struct Foo;

impl Foo {
    pub fn foo(_: i32, self: Box<Self) {}
    //~^ ERROR expected one of `!`, `(`, `+`, `,`, `::`, `:`, `<`, `=`, or `>`, found `)`
}

fn main() {}