rust/src/test/ui/issues/issue-20939.rs
2019-05-29 00:57:31 -04:00

7 lines
146 B
Rust

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