]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/universal_wrong_hrtb.stderr
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / impl-trait / universal_wrong_hrtb.stderr
1 error: `impl Trait` can only mention lifetimes bound at the fn or impl level
2   --> $DIR/universal_wrong_hrtb.rs:5:73
3    |
4 LL | fn test_argument_position(x: impl for<'a> Trait<'a, Assoc = impl Copy + 'a>) {}
5    |                                                                         ^^
6    |
7 note: lifetime declared here
8   --> $DIR/universal_wrong_hrtb.rs:5:39
9    |
10 LL | fn test_argument_position(x: impl for<'a> Trait<'a, Assoc = impl Copy + 'a>) {}
11    |                                       ^^
12
13 error: aborting due to previous error
14