]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-88818.rs
Rollup merge of #91630 - GuillaumeGomez:missing-whitespace, r=notriddle
[rust.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() {}