rust/tests/ui/impl-trait/universal_wrong_hrtb.stderr

9 lines
318 B
Plaintext
Raw Normal View History

2023-06-26 13:36:37 -05:00
error: `impl Trait` can only mention lifetimes from an fn or impl
--> $DIR/universal_wrong_hrtb.rs:5:73
|
LL | fn test_argument_position(x: impl for<'a> Trait<'a, Assoc = impl Copy + 'a>) {}
2023-06-26 13:36:37 -05:00
| -- lifetime declared here ^^
error: aborting due to 1 previous error