2022-05-27 09:02:11 +00:00
|
|
|
trait Trait<'a> {
|
|
|
|
type Assoc;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn test_argument_position(x: impl for<'a> Trait<'a, Assoc = impl Copy + 'a>) {}
|
2023-06-26 18:36:37 +00:00
|
|
|
//~^ ERROR `impl Trait` can only mention lifetimes from an fn or impl
|
2022-05-27 09:02:11 +00:00
|
|
|
|
|
|
|
fn main() {}
|