2019-01-08 21:14:04 +00:00
|
|
|
error[E0277]: the trait bound `&dyn Trait: Trait` is not satisfied
|
|
|
|
--> $DIR/coherence-unsafe-trait-object-impl.rs:15:13
|
|
|
|
|
|
|
|
|
LL | takes_t(t);
|
2021-09-07 11:30:53 +00:00
|
|
|
| ------- ^ the trait `Trait` is not implemented for `&dyn Trait`
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2021-07-31 16:26:55 +00:00
|
|
|
|
|
2023-09-10 03:33:07 +00:00
|
|
|
help: this trait has no implementations, consider adding one
|
|
|
|
--> $DIR/coherence-unsafe-trait-object-impl.rs:6:1
|
|
|
|
|
|
|
|
|
LL | trait Trait: Sized {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2021-07-31 16:26:55 +00:00
|
|
|
note: required by a bound in `takes_t`
|
|
|
|
--> $DIR/coherence-unsafe-trait-object-impl.rs:10:15
|
|
|
|
|
|
|
|
|
LL | fn takes_t<S: Trait>(s: S) {
|
|
|
|
| ^^^^^ required by this bound in `takes_t`
|
2019-01-08 21:14:04 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2019-01-08 21:14:04 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|