mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 02:40:40 +00:00
8 lines
196 B
Rust
8 lines
196 B
Rust
// https://github.com/rust-lang/rust/issues/20939
|
|
trait Foo {}
|
|
|
|
impl<'a> Foo for dyn Foo + 'a {}
|
|
//~^ ERROR the object type `(dyn Foo + 'a)` automatically implements the trait `Foo`
|
|
|
|
fn main() {}
|