]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/issue-88818.rs
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / ui / parser / issue-88818.rs
CommitLineData
c295e0f8
XL
1// Regression test for #88818 (improve error message for missing trait
2// in `impl for X`).
3
4struct S { }
5impl 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
10fn main() {}