summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/late-bound-vars/late-bound-in-return-issue-77357.stderr
blob: 7bef98b1d5d2fcf4a2d82e0b11cfbc1c51af6928 (plain)
1
2
3
4
5
6
7
8
error: cannot capture late-bound lifetime in constant
  --> $DIR/late-bound-in-return-issue-77357.rs:9:53
   |
LL | fn bug<'a, T>() -> &'static dyn MyTrait<[(); { |x: &'a u32| { x }; 4 }]> {
   |        -- lifetime defined here                     ^^

error: aborting due to 1 previous error