rust/tests/ui/parser/suggest_misplaced_generics/fn-invalid-generics.rs
2023-01-22 17:16:39 +11:00

9 lines
234 B
Rust

// 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() {}