2018-02-07 21:35:35 -06:00
|
|
|
error[E0393]: the type parameter `T` must be explicitly specified
|
2019-05-28 13:46:13 -05:00
|
|
|
--> $DIR/E0393.rs:3:47
|
2018-02-07 21:35:35 -06:00
|
|
|
|
|
2019-12-12 16:48:46 -06:00
|
|
|
LL | trait A<T=Self> {}
|
2022-02-13 09:27:59 -06:00
|
|
|
| --------------- type parameter `T` must be specified for this
|
2022-06-08 13:07:59 -05:00
|
|
|
LL |
|
2019-05-28 13:46:13 -05:00
|
|
|
LL | fn together_we_will_rule_the_galaxy(son: &dyn A) {}
|
2019-12-12 16:48:46 -06:00
|
|
|
| ^ help: set the type parameter to the desired type: `A<T>`
|
2018-02-07 21:35:35 -06:00
|
|
|
|
|
|
|
|
= note: because of the default `Self` reference, type parameters must be specified on object types
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0393`.
|