]> git.lizzy.rs Git - rust.git/blob - tests/ui/break-diverging-value.stderr
Rollup merge of #106692 - eggyal:mv-binary_heap.rs-binary_heap/mod.rs, r=Mark-Simulacrum
[rust.git] / tests / ui / break-diverging-value.stderr
1 error[E0308]: mismatched types
2   --> $DIR/break-diverging-value.rs:11:26
3    |
4 LL | fn loop_break_break() -> i32 {
5    |    ----------------      ^^^ expected `i32`, found `()`
6    |    |
7    |    implicitly returns `()` as its body has no tail or `return` expression
8
9 error[E0308]: mismatched types
10   --> $DIR/break-diverging-value.rs:25:25
11    |
12 LL | fn loop_break_void() -> i32 {
13    |    ---------------      ^^^ expected `i32`, found `()`
14    |    |
15    |    implicitly returns `()` as its body has no tail or `return` expression
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0308`.