]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/coherence-impl-trait-for-trait.stderr
Merge commit 'ea199bacef07213dbe008841b89c450e3bf0c638' into rustfmt-sync
[rust.git] / src / test / ui / coherence / coherence-impl-trait-for-trait.stderr
1 error[E0371]: the object type `(dyn Baz + 'static)` automatically implements the trait `Foo`
2   --> $DIR/coherence-impl-trait-for-trait.rs:9:1
3    |
4 LL | impl Foo for dyn Baz { }
5    | ^^^^^^^^^^^^^^^^^^^^ `(dyn Baz + 'static)` automatically implements trait `Foo`
6
7 error[E0371]: the object type `(dyn Baz + 'static)` automatically implements the trait `Bar`
8   --> $DIR/coherence-impl-trait-for-trait.rs:11:1
9    |
10 LL | impl Bar for dyn Baz { }
11    | ^^^^^^^^^^^^^^^^^^^^ `(dyn Baz + 'static)` automatically implements trait `Bar`
12
13 error[E0371]: the object type `(dyn Baz + 'static)` automatically implements the trait `Baz`
14   --> $DIR/coherence-impl-trait-for-trait.rs:13:1
15    |
16 LL | impl Baz for dyn Baz { }
17    | ^^^^^^^^^^^^^^^^^^^^ `(dyn Baz + 'static)` automatically implements trait `Baz`
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0371`.