summary refs log tree commit diff
path: root/src/test/ui/for-loop-while/label_break_value.stderr
blob: b1eb3204fd5997166ca0eac767e228dac6ea49e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
warning: label name `'b` shadows a label name that is already in scope
  --> $DIR/label_break_value.rs:105:18
   |
LL |             v if { 'b: { break 'b v == 5; } } => { x = 41; },
   |                    -- first declared here
LL |             _ => 'b: {
   |                  ^^ label `'b` already in scope

warning: label name `'a` shadows a label name that is already in scope
  --> $DIR/label_break_value.rs:131:17
   |
LL |     let x: u8 = 'a: {
   |                 -- first declared here
...
LL |     let x: u8 = 'a: {
   |                 ^^ label `'a` already in scope

warning: label name `'b` shadows a label name that is already in scope
  --> $DIR/label_break_value.rs:132:9
   |
LL |         'b: {
   |         -- first declared here
...
LL |         'b: {
   |         ^^ label `'b` already in scope

warning: 3 warnings emitted