2019-01-08 15:14:04 -06: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 06:30:53 -05:00
|
|
|
| ------- ^ the trait `Trait` is not implemented for `&dyn Trait`
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2021-07-31 11:26:55 -05:00
|
|
|
|
|
2023-09-09 22:33:07 -05: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 11:26:55 -05: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 15:14:04 -06:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2019-01-08 15:14:04 -06:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|