2019-07-13 19:34:06 -05:00
|
|
|
// 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) {}
|
2020-11-21 15:44:06 +01:00
|
|
|
//~^ ERROR expected one of `!`, `(`, `+`, `,`, `::`, `:`, `<`, `=`, or `>`, found `)`
|
2019-07-13 19:34:06 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {}
|