about summary refs log tree commit diff
path: root/tests/ui/closures/issue-52437.stderr
blob: 8c6fa097ec536b3c344aa6f93129a604ae2ddd52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: labels cannot use keyword names
  --> $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`.