rust/tests/ui/issues/issue-20939.rs
2023-01-11 09:32:08 +00: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() {}