summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/suggest_misplaced_generics/fn-invalid-generics.rs
blob: 7fcb6a82ce451e49120cc01caa3e39da5c5578d5 (plain)
1
2
3
4
5
6
7
8
// Issue: 103366 , Suggest fix for misplaced generic params
// The generics fail to parse here, so don't make any suggestions/help

#[allow(unused)]
fn<~>()> id(x: T) -> T { x }
//~^ ERROR expected identifier, found `<`

fn main() {}