1
Fork 0
rust/tests/ui/issues/issue-22370.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
572 B
Text
Raw Normal View History

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