mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
9 lines
318 B
Plaintext
9 lines
318 B
Plaintext
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>) {}
|
|
| -- lifetime declared here ^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|