mirror of
https://git.proxmox.com/git/rustc
synced 2026-03-27 14:23:24 +00:00
12 lines
309 B
Rust
12 lines
309 B
Rust
// 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() {}
|