2022-10-24 00:52:59 +11:00
|
|
|
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
|
|
|
|
|
|
2023-01-31 21:44:11 +11:00
|
|
|
LL - struct<T> Foo { x: T }
|
|
|
|
LL + struct Foo<T> { x: T }
|
|
|
|
|
|
2022-10-24 00:52:59 +11:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2022-10-24 00:52:59 +11:00
|
|
|
|