summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/suggest_misplaced_generics/struct.fixed
blob: fec05bdeca15c0f902551a8c23992ac60d82b3c7 (plain)
1
2
3
4
5
6
7
8
9
// Issue: 103366 , Suggest fix for misplaced generic params
// run-rustfix

#[allow(unused)]
struct Foo<T> { x: T }
//~^ ERROR expected identifier, found `<`
//~| HELP place the generic parameter name after the struct name

fn main() {}