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