about summary refs log tree commit diff
path: root/tests/ui/loop-match/const-continue-to-block.stderr
blob: f4e223bcff1379bd99996628c4e10c19fc2f16f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
warning: label name `'blk` shadows a label name that is already in scope
  --> $DIR/const-continue-to-block.rs:38:22
   |
LL |         state = 'blk: {
   |                 ---- first declared here
...
LL |                 _ => 'blk: {
   |                      ^^^^ label `'blk` already in scope

error: `#[const_continue]` must break to a labeled block that participates in a `#[loop_match]`
  --> $DIR/const-continue-to-block.rs:20:27
   |
LL |                     break 'b 2;
   |                           ^^

error: `#[const_continue]` must break to a labeled block that participates in a `#[loop_match]`
  --> $DIR/const-continue-to-block.rs:41:27
   |
LL |                     break 'blk 2;
   |                           ^^^^

error: aborting due to 2 previous errors; 1 warning emitted