2017-11-23 08:05:58 -05:00
|
|
|
trait Trait1<'a> {}
|
|
|
|
trait Trait2<'a, 'b> {}
|
2017-01-18 17:41:57 +03:00
|
|
|
|
|
|
|
fn f() where
|
2019-05-28 14:46:13 -04:00
|
|
|
for<'a> dyn Trait1<'a>: Trait1<'a>, // OK
|
|
|
|
(dyn for<'a> Trait1<'a>): Trait1<'a>,
|
2017-01-18 17:41:57 +03:00
|
|
|
//~^ ERROR use of undeclared lifetime name `'a`
|
2019-05-28 14:46:13 -04:00
|
|
|
for<'a> dyn for<'b> Trait2<'a, 'b>: Trait2<'a, 'b>,
|
2017-01-18 17:41:57 +03:00
|
|
|
//~^ ERROR use of undeclared lifetime name `'b`
|
|
|
|
{}
|
|
|
|
|
|
|
|
fn main() {}
|