7 lines
140 B
Rust
7 lines
140 B
Rust
trait Foo {}
|
|
|
|
impl<'a> Foo for Foo+'a {}
|
|
//~^ ERROR the object type `(dyn Foo + 'a)` automatically implements the trait `Foo`
|
|
|
|
fn main() {}
|