Files
rust/tests/ui/traits/default_auto_traits/maybe-bounds-in-dyn-traits.stderr

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

24 lines
856 B
Plaintext
Raw Normal View History

error[E0277]: the trait bound `NonLeakS: Leak` is not satisfied
--> $DIR/maybe-bounds-in-dyn-traits.rs:53:25
|
LL | let _: &dyn Trait = &NonLeakS;
| ^^^^^^^^^ the trait `Leak` is not implemented for `NonLeakS`
|
= note: required for the cast from `&NonLeakS` to `&dyn Trait + Leak`
error[E0277]: the trait bound `dyn Trait: Leak` is not satisfied
--> $DIR/maybe-bounds-in-dyn-traits.rs:58:7
|
LL | x.leak_foo();
| ^^^^^^^^ the trait `Leak` is not implemented for `dyn Trait`
|
note: required by a bound in `Trait::leak_foo`
--> $DIR/maybe-bounds-in-dyn-traits.rs:45:5
|
LL | fn leak_foo(&self) {}
| ^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Trait::leak_foo`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0277`.