fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: the trait bound `&dyn Trait: Trait` is not satisfied 2 --> $DIR/coherence-unsafe-trait-object-impl.rs:15:13 3 | 4LL | takes_t(t); 5 | ------- ^ the trait `Trait` is not implemented for `&dyn Trait` 6 | | 7 | required by a bound introduced by this call 8 | 9help: this trait has no implementations, consider adding one 10 --> $DIR/coherence-unsafe-trait-object-impl.rs:6:1 11 | 12LL | trait Trait: Sized { 13 | ^^^^^^^^^^^^^^^^^^ 14note: required by a bound in `takes_t` 15 --> $DIR/coherence-unsafe-trait-object-impl.rs:10:15 16 | 17LL | fn takes_t<S: Trait>(s: S) { 18 | ^^^^^ required by this bound in `takes_t` 19 20error: aborting due to previous error 21 22For more information about this error, try `rustc --explain E0277`.