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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
|
error: block label not supported here
--> $DIR/label-on-block-suggest-move.rs:5:10
|
LL | loop 'a: {}
| ^^^ not supported here
|
help: if you meant to label the loop, move this label before the loop
|
LL - loop 'a: {}
LL + 'a: loop {}
|
error: block label not supported here
--> $DIR/label-on-block-suggest-move.rs:8:17
|
LL | while false 'a: {}
| ^^^ not supported here
|
help: if you meant to label the loop, move this label before the loop
|
LL - while false 'a: {}
LL + 'a: while false {}
|
error: block label not supported here
--> $DIR/label-on-block-suggest-move.rs:11:18
|
LL | for i in [0] 'a: {}
| ^^^ not supported here
|
help: if you meant to label the loop, move this label before the loop
|
LL - for i in [0] 'a: {}
LL + 'a: for i in [0] {}
|
error: block label not supported here
--> $DIR/label-on-block-suggest-move.rs:16:31
|
LL | while break 'a 'b: {} 'c: {}
| ^^^ not supported here
|
help: if you meant to label the loop, move this label before the loop
|
LL - while break 'a 'b: {} 'c: {}
LL + 'c: while break 'a 'b: {} {}
|
error: block label not supported here
--> $DIR/label-on-block-suggest-move.rs:19:33
|
LL | while break 'a ('b: {}) 'c: {}
| ^^^ not supported here
|
help: if you meant to label the loop, move this label before the loop
|
LL - while break 'a ('b: {}) 'c: {}
LL + 'c: while break 'a ('b: {}) {}
|
error: block label not supported here
--> $DIR/label-on-block-suggest-move.rs:26:29
|
LL | while (break 'a {}) 'c: {}
| ^^^ not supported here
|
help: if you meant to label the loop, move this label before the loop
|
LL - while (break 'a {}) 'c: {}
LL + 'c: while (break 'a {}) {}
|
error: block label not supported here
--> $DIR/label-on-block-suggest-move.rs:32:14
|
LL | 'a: loop 'b: {}
| ^^^ not supported here
error: block label not supported here
--> $DIR/label-on-block-suggest-move.rs:35:21
|
LL | 'a: while false 'b: {}
| ^^^ not supported here
error: block label not supported here
--> $DIR/label-on-block-suggest-move.rs:38:22
|
LL | 'a: for i in [0] 'b: {}
| ^^^ not supported here
error: block label not supported here
--> $DIR/label-on-block-suggest-move.rs:43:35
|
LL | 'd: while break 'a 'b: {} 'c: {}
| ^^^ not supported here
error: block label not supported here
--> $DIR/label-on-block-suggest-move.rs:46:37
|
LL | 'd: while break 'a ('b: {}) 'c: {}
| ^^^ not supported here
error: block label not supported here
--> $DIR/label-on-block-suggest-move.rs:53:33
|
LL | 'd: while (break 'a {}) 'c: {}
| ^^^ not supported here
error: expected `while`, `for`, `loop` or `{` after a label
--> $DIR/label-on-block-suggest-move.rs:83:9
|
LL | 'a: 'b: {}
| ^^ expected `while`, `for`, `loop` or `{` after a label
|
help: consider removing the label
|
LL - 'a: 'b: {}
LL + 'b: {}
|
error: parentheses are required around this expression to avoid confusion with a labeled break expression
--> $DIR/label-on-block-suggest-move.rs:86:24
|
LL | loop { while break 'b: {} {} }
| ^^^^^^
|
help: wrap the expression in parentheses
|
LL | loop { while break ('b: {}) {} }
| + +
error[E0590]: `break` or `continue` with no label in the condition of a `while` loop
--> $DIR/label-on-block-suggest-move.rs:86:18
|
LL | loop { while break 'b: {} {} }
| ^^^^^^^^^^^^ unlabeled `break` in the condition of a `while` loop
error: aborting due to 15 previous errors
For more information about this error, try `rustc --explain E0590`.
|