mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-17 15:16:42 +00:00
11 lines
254 B
Rust
11 lines
254 B
Rust
// Regression test for #88818 (improve error message for missing trait
|
|
// in `impl for X`).
|
|
|
|
struct S { }
|
|
impl for S { }
|
|
//~^ ERROR: missing trait in a trait impl
|
|
//~| HELP: add a trait here
|
|
//~| HELP: for an inherent impl, drop this `for`
|
|
|
|
fn main() {}
|