2025-07-13 16:25:27 -04:00
|
|
|
// https://github.com/rust-lang/rust/issues/20939
|
2015-04-10 16:12:54 +10:00
|
|
|
trait Foo {}
|
|
|
|
|
|
2019-05-28 14:46:13 -04:00
|
|
|
impl<'a> Foo for dyn Foo + 'a {}
|
2018-05-26 20:51:50 -07:00
|
|
|
//~^ ERROR the object type `(dyn Foo + 'a)` automatically implements the trait `Foo`
|
2015-04-10 16:12:54 +10:00
|
|
|
|
|
|
|
|
fn main() {}
|