summary refs log tree commit diff
path: root/src/test/ui/label_break_value_illegal_uses.stderr
blob: 0ab1ad2c24200360595147b43f83da6a71ffeb79 (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
29
30
31
error: expected one of `extern`, `fn`, or `{`, found `'b`
  --> $DIR/label_break_value_illegal_uses.rs:16:12
   |
LL |     unsafe 'b: {} //~ ERROR expected one of `extern`, `fn`, or `{`
   |            ^^ expected one of `extern`, `fn`, or `{` here

error: expected `{`, found `'b`
  --> $DIR/label_break_value_illegal_uses.rs:20:13
   |
LL |     if true 'b: {} //~ ERROR expected `{`, found `'b`
   |     --      ^^----
   |     |       |
   |     |       help: try placing this code inside a block: `{ 'b: { } }`
   |     this `if` statement has a condition, but no block

error: expected `{`, found `'b`
  --> $DIR/label_break_value_illegal_uses.rs:24:21
   |
LL |     if true {} else 'b: {} //~ ERROR expected `{`, found `'b`
   |                     ^^----
   |                     |
   |                     help: try placing this code inside a block: `{ 'b: { } }`

error: expected one of `.`, `?`, `{`, or an operator, found `'b`
  --> $DIR/label_break_value_illegal_uses.rs:28:17
   |
LL |     match false 'b: {} //~ ERROR expected one of `.`, `?`, `{`, or an operator
   |                 ^^ expected one of `.`, `?`, `{`, or an operator here

error: aborting due to 4 previous errors