]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/issues/issue-62660.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / parser / issues / issue-62660.rs
CommitLineData
dc9dc135
XL
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
4struct Foo;
5
6impl Foo {
7 pub fn foo(_: i32, self: Box<Self) {}
923072b8 8 //~^ ERROR expected one of `!`, `(`, `+`, `,`, `::`, `<`, or `>`, found `)`
dc9dc135
XL
9}
10
11fn main() {}