2022-10-24 00:52:59 +11:00
|
|
|
error: expected identifier, found `<`
|
|
|
|
|
--> $DIR/trait.rs:5:6
|
|
|
|
|
|
|
|
|
|
|
LL | trait<T> Foo {
|
|
|
|
|
| ^ expected identifier
|
|
|
|
|
|
|
|
|
|
|
help: place the generic parameter name after the trait name
|
|
|
|
|
|
|
2023-01-31 21:44:11 +11:00
|
|
|
LL - trait<T> Foo {
|
|
|
|
|
LL + trait Foo<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
|
|
|
|