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

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

fn main() {}