blob: b9551c2ceb0e52bc0ce0d01c70c6e3092fc798d3 (
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 bound at the fn or impl level
fn main() {}
|