Files
rust/tests/ui/dyn-compatibility/dyn-compatible-trait-implementation-20939.stderr

10 lines
390 B
Plaintext
Raw Normal View History

2018-07-15 14:11:54 -07:00
error[E0371]: the object type `(dyn Foo + 'a)` automatically implements the trait `Foo`
2025-07-13 16:25:27 -04:00
--> $DIR/dyn-compatible-trait-implementation-20939.rs:4:1
2018-07-15 14:11:54 -07:00
|
2019-05-28 14:46:13 -04:00
LL | impl<'a> Foo for dyn Foo + 'a {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `(dyn Foo + 'a)` automatically implements trait `Foo`
2018-07-15 14:11:54 -07:00
error: aborting due to 1 previous error
2018-07-15 14:11:54 -07:00
For more information about this error, try `rustc --explain E0371`.