blob: 48561710143b6cc26e3db6cc6d5468062119bac0 (
plain)
1
2
3
4
5
6
7
8
|
trait Trait<'a> {
type Assoc;
}
fn test_argument_position(x: impl for<'a> Trait<'a, Assoc = impl Copy + 'a>) {}
//~^ ERROR `impl Trait` can only mention lifetimes from an fn or impl
fn main() {}
|