blob: b9233ca8339e19305cc11695b178d242bc665ce1 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Regression test for #88818 (improve error message for missing trait
// in `impl for X`).
struct S { }
impl for S { }
//~^ ERROR: missing trait in a trait impl
//~| HELP: add a trait here
//~| HELP: for an inherent impl, drop this `for`
fn main() {}
|