rust/tests/ui/parser/suggest_misplaced_generics/type.rs

10 lines
230 B
Rust

// Issue: 103366 , Suggest fix for misplaced generic params
//@ run-rustfix
#[allow(unused)]
type<T> Foo = T;
//~^ ERROR expected identifier, found `<`
//~| HELP place the generic parameter name after the type name
fn main() {}