summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/universal_wrong_hrtb.stderr
blob: 37eb8dfa1a1415260884c5c386828cb704ede398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: `impl Trait` can only mention lifetimes bound at the fn or impl level
  --> $DIR/universal_wrong_hrtb.rs:5:73
   |
LL | fn test_argument_position(x: impl for<'a> Trait<'a, Assoc = impl Copy + 'a>) {}
   |                                                                         ^^
   |
note: lifetime declared here
  --> $DIR/universal_wrong_hrtb.rs:5:39
   |
LL | fn test_argument_position(x: impl for<'a> Trait<'a, Assoc = impl Copy + 'a>) {}
   |                                       ^^

error: aborting due to previous error