]> git.proxmox.com Git - rustc.git/blob - src/test/ui/parser/issues/issue-88818.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / parser / issues / issue-88818.rs
1 // Regression test for #88818 (improve error message for missing trait
2 // in `impl for X`).
3
4 struct S { }
5 impl for S { }
6 //~^ ERROR: missing trait in a trait impl
7 //~| HELP: add a trait here
8 //~| HELP: for an inherent impl, drop this `for`
9
10 fn main() {}