about summary refs log tree commit diff
path: root/tests/ui/parser/suggest_misplaced_generics/struct.rs
blob: 013ba6e3ce50ac3b245149bf3a34e9a421651bfa (plain)
1
2
3
4
5
6
7
8
9
// Issue: 103366 , Suggest fix for misplaced generic params
//@ run-rustfix

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

fn main() {}