c295e0f8 XL |
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() {} |