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