fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0425]: cannot find value `while_loop` in this scope 2 --> $DIR/label_misspelled.rs:6:9 3 | 4LL | 'while_loop: while true { 5 | ----------- a label with a similar name exists 6LL | 7LL | while_loop; 8 | ^^^^^^^^^^ not found in this scope 9 10error[E0425]: cannot find value `while_let` in this scope 11 --> $DIR/label_misspelled.rs:11:9 12 | 13LL | 'while_let: while let Some(_) = Some(()) { 14 | ---------- a label with a similar name exists 15LL | 16LL | while_let; 17 | ^^^^^^^^^ not found in this scope 18 19error[E0425]: cannot find value `for_loop` in this scope 20 --> $DIR/label_misspelled.rs:16:9 21 | 22LL | 'for_loop: for _ in 0..3 { 23 | --------- a label with a similar name exists 24LL | 25LL | for_loop; 26 | ^^^^^^^^ not found in this scope 27 28error[E0425]: cannot find value `LOOP` in this scope 29 --> $DIR/label_misspelled.rs:21:9 30 | 31LL | 'LOOP: loop { 32 | ----- a label with a similar name exists 33LL | 34LL | LOOP; 35 | ^^^^ not found in this scope 36 37error[E0425]: cannot find value `LOOP` in this scope 38 --> $DIR/label_misspelled.rs:28:15 39 | 40LL | 'LOOP: loop { 41 | ----- a label with a similar name exists 42LL | break LOOP; 43 | ^^^^ 44 | | 45 | not found in this scope 46 | help: use the similarly named label: `'LOOP` 47 48error[E0425]: cannot find value `while_loop` in this scope 49 --> $DIR/label_misspelled.rs:32:15 50 | 51LL | 'while_loop: while true { 52 | ----------- a label with a similar name exists 53LL | break while_loop; 54 | ^^^^^^^^^^ 55 | | 56 | not found in this scope 57 | help: use the similarly named label: `'while_loop` 58 59error[E0425]: cannot find value `while_let` in this scope 60 --> $DIR/label_misspelled.rs:36:15 61 | 62LL | 'while_let: while let Some(_) = Some(()) { 63 | ---------- a label with a similar name exists 64LL | break while_let; 65 | ^^^^^^^^^ 66 | | 67 | not found in this scope 68 | help: use the similarly named label: `'while_let` 69 70error[E0425]: cannot find value `for_loop` in this scope 71 --> $DIR/label_misspelled.rs:40:15 72 | 73LL | 'for_loop: for _ in 0..3 { 74 | --------- a label with a similar name exists 75LL | break for_loop; 76 | ^^^^^^^^ 77 | | 78 | not found in this scope 79 | help: use the similarly named label: `'for_loop` 80 81warning: unused label 82 --> $DIR/label_misspelled.rs:4:5 83 | 84LL | 'while_loop: while true { 85 | ^^^^^^^^^^^ 86 | 87note: the lint level is defined here 88 --> $DIR/label_misspelled.rs:1:9 89 | 90LL | #![warn(unused_labels)] 91 | ^^^^^^^^^^^^^ 92 93warning: denote infinite loops with `loop { ... }` 94 --> $DIR/label_misspelled.rs:4:5 95 | 96LL | 'while_loop: while true { 97 | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `loop` 98 | 99 = note: `#[warn(while_true)]` on by default 100 101warning: unused label 102 --> $DIR/label_misspelled.rs:9:5 103 | 104LL | 'while_let: while let Some(_) = Some(()) { 105 | ^^^^^^^^^^ 106 107warning: unused label 108 --> $DIR/label_misspelled.rs:14:5 109 | 110LL | 'for_loop: for _ in 0..3 { 111 | ^^^^^^^^^ 112 113warning: unused label 114 --> $DIR/label_misspelled.rs:19:5 115 | 116LL | 'LOOP: loop { 117 | ^^^^^ 118 119warning: denote infinite loops with `loop { ... }` 120 --> $DIR/label_misspelled.rs:31:5 121 | 122LL | 'while_loop: while true { 123 | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `loop` 124 125warning: unused label 126 --> $DIR/label_misspelled.rs:47:5 127 | 128LL | 'while_loop: while true { 129 | ^^^^^^^^^^^ 130 131warning: denote infinite loops with `loop { ... }` 132 --> $DIR/label_misspelled.rs:47:5 133 | 134LL | 'while_loop: while true { 135 | ^^^^^^^^^^^^^^^^^^^^^^^ help: use `loop` 136 137warning: unused label 138 --> $DIR/label_misspelled.rs:52:5 139 | 140LL | 'while_let: while let Some(_) = Some(()) { 141 | ^^^^^^^^^^ 142 143warning: unused label 144 --> $DIR/label_misspelled.rs:57:5 145 | 146LL | 'for_loop: for _ in 0..3 { 147 | ^^^^^^^^^ 148 149error[E0571]: `break` with value from a `while` loop 150 --> $DIR/label_misspelled.rs:49:9 151 | 152LL | 'while_loop: while true { 153 | ----------------------- you can't `break` with a value in a `while` loop 154LL | 155LL | break foo; 156 | ^^^^^^^^^ can only break with a value inside `loop` or breakable block 157 | 158help: use `break` on its own without a value inside this `while` loop 159 | 160LL | break; 161 | ~~~~~ 162help: alternatively, you might have meant to use the available loop label 163 | 164LL | break 'while_loop; 165 | ~~~~~~~~~~~ 166 167error[E0571]: `break` with value from a `while` loop 168 --> $DIR/label_misspelled.rs:54:9 169 | 170LL | 'while_let: while let Some(_) = Some(()) { 171 | ---------------------------------------- you can't `break` with a value in a `while` loop 172LL | 173LL | break foo; 174 | ^^^^^^^^^ can only break with a value inside `loop` or breakable block 175 | 176help: use `break` on its own without a value inside this `while` loop 177 | 178LL | break; 179 | ~~~~~ 180help: alternatively, you might have meant to use the available loop label 181 | 182LL | break 'while_let; 183 | ~~~~~~~~~~ 184 185error[E0571]: `break` with value from a `for` loop 186 --> $DIR/label_misspelled.rs:59:9 187 | 188LL | 'for_loop: for _ in 0..3 { 189 | ------------------------ you can't `break` with a value in a `for` loop 190LL | 191LL | break foo; 192 | ^^^^^^^^^ can only break with a value inside `loop` or breakable block 193 | 194help: use `break` on its own without a value inside this `for` loop 195 | 196LL | break; 197 | ~~~~~ 198help: alternatively, you might have meant to use the available loop label 199 | 200LL | break 'for_loop; 201 | ~~~~~~~~~ 202 203error: aborting due to 11 previous errors; 10 warnings emitted 204 205Some errors have detailed explanations: E0425, E0571. 206For more information about an error, try `rustc --explain E0425`.