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

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

fn main() {}