fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB47 linesraw
1error[E0308]: mismatched types
2  --> $DIR/loop-no-implicit-break.rs:3:9
3   |
4LL |         1
5   |         ^ expected `()`, found integer
6   |
7help: you might have meant to break the loop with this value
8   |
9LL |         break 1;
10   |         +++++  +
11
12error[E0308]: mismatched types
13  --> $DIR/loop-no-implicit-break.rs:13:9
14   |
15LL |         1
16   |         ^ expected `()`, found integer
17   |
18help: you might have meant to break the loop with this value
19   |
20LL |         break 1;
21   |         +++++  +
22
23error[E0308]: mismatched types
24  --> $DIR/loop-no-implicit-break.rs:21:9
25   |
26LL |         1
27   |         ^ expected `()`, found integer
28   |
29help: you might have meant to return this value
30   |
31LL |         return 1;
32   |         ++++++  +
33
34error[E0308]: mismatched types
35  --> $DIR/loop-no-implicit-break.rs:29:9
36   |
37LL |         1
38   |         ^ expected `()`, found integer
39   |
40help: you might have meant to return this value
41   |
42LL |         return 1;
43   |         ++++++  +
44
45error: aborting due to 4 previous errors
46
47For more information about this error, try `rustc --explain E0308`.