You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mention associated type with same name as trait in E0782
```
error[E0782]: trait objects must include the `dyn` keyword
--> $DIR/issue-116434-2021.rs:5:17
|
LL | type Clone;
| ---------- you might have meant to use this associated type
LL | fn foo() -> Clone;
| ^^^^^
|
help: `Clone` is not object safe, use `impl Clone` to return an opaque type, as long as you return a single underlying type
|
LL | fn foo() -> impl Clone;
| ++++
help: there is an associated type with the same name
|
LL | fn foo() -> Self::Clone;
| ++++++
```
0 commit comments