summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/suggest_misplaced_generics/struct.stderr
blob: 09e176adb4d87773a1805105cd8dcae065609cd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: expected identifier, found `<`
  --> $DIR/struct.rs:5:7
   |
LL | struct<T> Foo { x: T }
   |       ^ expected identifier
   |
help: place the generic parameter name after the struct name
   |
LL - struct<T> Foo { x: T }
LL + struct Foo<T> { x: T }
   |

error: aborting due to 1 previous error