]> git.lizzy.rs Git - rust.git/blob - tests/ui/loops/loop-no-implicit-break.stderr
Rollup merge of #106397 - compiler-errors:new-solver-impl-wc, r=lcnr
[rust.git] / tests / ui / loops / loop-no-implicit-break.stderr
1 error[E0308]: mismatched types
2   --> $DIR/loop-no-implicit-break.rs:3:9
3    |
4 LL |         1
5    |         ^ expected `()`, found integer
6    |
7 help: you might have meant to break the loop with this value
8    |
9 LL |         break 1;
10    |         +++++  +
11
12 error[E0308]: mismatched types
13   --> $DIR/loop-no-implicit-break.rs:13:9
14    |
15 LL |         1
16    |         ^ expected `()`, found integer
17    |
18 help: you might have meant to break the loop with this value
19    |
20 LL |         break 1;
21    |         +++++  +
22
23 error[E0308]: mismatched types
24   --> $DIR/loop-no-implicit-break.rs:21:9
25    |
26 LL |         1
27    |         ^ expected `()`, found integer
28    |
29 help: you might have meant to return this value
30    |
31 LL |         return 1;
32    |         ++++++  +
33
34 error[E0308]: mismatched types
35   --> $DIR/loop-no-implicit-break.rs:29:9
36    |
37 LL |         1
38    |         ^ expected `()`, found integer
39    |
40 help: you might have meant to return this value
41    |
42 LL |         return 1;
43    |         ++++++  +
44
45 error: aborting due to 4 previous errors
46
47 For more information about this error, try `rustc --explain E0308`.