summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/universal_wrong_hrtb.stderr
blob: b5a091b61faf0dc79294b6aa2c6d0ea588433e79 (plain)
1
2
3
4
5
6
7
8
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 previous error