When encountering an unmet trait bound, point at local type that doesn't implement the trait: ``` error[E0277]: the trait bound `Bar<T>: Foo` is not satisfied --> $DIR/issue-64855.rs:9:19 | LL | pub struct Bar<T>(<Self as Foo>::Type) where Self: ; | ^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound | help: the trait `Foo` is not implemented for `Bar<T>` --> $DIR/issue-64855.rs:9:1 | LL | pub struct Bar<T>(<Self as Foo>::Type) where Self: ; | ^^^^^^^^^^^^^^^^^ ```
25 lines
801 B
Plaintext
25 lines
801 B
Plaintext
error[E0055]: reached the recursion limit while auto-dereferencing `Cyclic`
|
|
--> $DIR/recursion-limit.rs:18:9
|
|
|
|
|
LL | () => {}
|
|
| ^^ deref recursion limit reached
|
|
|
|
|
= help: consider increasing the recursion limit by adding a `#![recursion_limit = "16"]` attribute to your crate (`recursion_limit`)
|
|
|
|
error[E0277]: the trait bound `Cyclic: DerefPure` is not satisfied
|
|
--> $DIR/recursion-limit.rs:18:9
|
|
|
|
|
LL | () => {}
|
|
| ^^ unsatisfied trait bound
|
|
|
|
|
help: the trait `DerefPure` is not implemented for `Cyclic`
|
|
--> $DIR/recursion-limit.rs:8:1
|
|
|
|
|
LL | struct Cyclic;
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
Some errors have detailed explanations: E0055, E0277.
|
|
For more information about an error, try `rustc --explain E0055`.
|