summaryrefslogtreecommitdiffstats
path: root/src/test/ui/closures/issue-52437.stderr
blob: 4c24a54bbbe014ddc03ee083e274aa58d97110de (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: _| {}; }) as *const _ as usize]
   |                               +++

error: aborting due to 2 previous errors

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