rust/src/test/ui/issues/issue-20939.rs
2018-12-25 21:08:33 -07:00

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() {}