fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
901 B21 linesraw
1error[E0371]: the object type `(dyn Baz + 'static)` automatically implements the trait `Foo`
2  --> $DIR/coherence-impl-trait-for-trait.rs:9: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:11: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:13: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`.