summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/suggest_misplaced_generics/struct.stderr
blob: 2b650907092d1ca3103d5a6a73140840620ee498 (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 previous error