]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-22370.stderr
Merge commit 'b52fb5234cd7c11ecfae51897a6f7fa52e8777fc' into clippyup
[rust.git] / src / test / ui / issues / issue-22370.stderr
1 error[E0393]: the type parameter `T` must be explicitly specified
2   --> $DIR/issue-22370.rs:3:14
3    |
4 LL | trait A<T=Self> {}
5    | --------------- type parameter `T` must be specified for this
6 LL |
7 LL | fn f(a: &dyn A) {}
8    |              ^ help: set the type parameter to the desired type: `A<T>`
9    |
10    = note: because of the default `Self` reference, type parameters must be specified on object types
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0393`.