fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.0
1error[E0371]: the object type `(dyn Baz + 'static)` automatically implements the trait `Foo` 2 --> $DIR/coherence-impl-trait-for-trait.rs:13:1 3 | 4LL | impl Foo for dyn Baz { } 5 | ^^^^^^^^^^^^^^^^^^^^ `(dyn Baz + 'static)` automatically implements trait `Foo` 6 7error[E0371]: the object type `(dyn Baz + 'static)` automatically implements the trait `Bar` 8 --> $DIR/coherence-impl-trait-for-trait.rs:16:1 9 | 10LL | impl Bar for dyn Baz { } 11 | ^^^^^^^^^^^^^^^^^^^^ `(dyn Baz + 'static)` automatically implements trait `Bar` 12 13error[E0371]: the object type `(dyn Baz + 'static)` automatically implements the trait `Baz` 14 --> $DIR/coherence-impl-trait-for-trait.rs:19:1 15 | 16LL | impl Baz for dyn Baz { } 17 | ^^^^^^^^^^^^^^^^^^^^ `(dyn Baz + 'static)` automatically implements trait `Baz` 18 19error: aborting due to 3 previous errors 20 21For more information about this error, try `rustc --explain E0371`.