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