mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
049c32797b
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: ; | ^^^^^^^^^^^^^^^^^ ```
26 lines
779 B
Plaintext
26 lines
779 B
Plaintext
error[E0277]: the trait bound `MyCall: Callback` is not satisfied
|
|
--> $DIR/issue-75707.rs:15:9
|
|
|
|
|
LL | f::<dyn Processing<Call = MyCall>>();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
|
|
|
|
|
help: the trait `Callback` is not implemented for `MyCall`
|
|
--> $DIR/issue-75707.rs:14:5
|
|
|
|
|
LL | struct MyCall;
|
|
| ^^^^^^^^^^^^^
|
|
help: this trait has no implementations, consider adding one
|
|
--> $DIR/issue-75707.rs:1:1
|
|
|
|
|
LL | pub trait Callback {
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
note: required by a bound in `f`
|
|
--> $DIR/issue-75707.rs:9:9
|
|
|
|
|
LL | fn f<P: Processing + ?Sized>() {
|
|
| ^^^^^^^^^^ required by this bound in `f`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|