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