]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-62660.rs
Rollup merge of #91630 - GuillaumeGomez:missing-whitespace, r=notriddle
[rust.git] / src / test / ui / parser / issues / issue-62660.rs
1 // Regression test for issue #62660: if a receiver's type does not
2 // successfully parse, emit the correct error instead of ICE-ing the compiler.
3
4 struct Foo;
5
6 impl Foo {
7     pub fn foo(_: i32, self: Box<Self) {}
8     //~^ ERROR expected one of `!`, `(`, `+`, `,`, `::`, `:`, `<`, `=`, or `>`, found `)`
9 }
10
11 fn main() {}