summaryrefslogtreecommitdiffstats
path: root/tests/ui/closures/issue-52437.stderr
blob: 9ba24c7a886958ab32b9d2ddfae01774d4438ea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: invalid label name `'static`
  --> $DIR/issue-52437.rs:2:13
   |
LL |     [(); &(&'static: loop { |x| {}; }) as *const _ as usize]
   |             ^^^^^^^

error[E0282]: type annotations needed
  --> $DIR/issue-52437.rs:2:30
   |
LL |     [(); &(&'static: loop { |x| {}; }) as *const _ as usize]
   |                              ^
   |
help: consider giving this closure parameter an explicit type
   |
LL |     [(); &(&'static: loop { |x: /* Type */| {}; }) as *const _ as usize]
   |                               ++++++++++++

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0282`.