]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-88818.rs
Merge commit '533f0fc81ab9ba097779fcd27c8f9ea12261fef5' into psimd
[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() {}