|
| 1 | +error[E0308]: mismatched types |
| 2 | + --> $DIR/diverges-not.rs:12:26 |
| 3 | + | |
| 4 | +LL | fn wild_void(_: Void) -> u32 {} |
| 5 | + | --------- ^^^ expected `u32`, found `()` |
| 6 | + | | |
| 7 | + | implicitly returns `()` as its body has no tail or `return` expression |
| 8 | + |
| 9 | +error[E0308]: mismatched types |
| 10 | + --> $DIR/diverges-not.rs:17:5 |
| 11 | + | |
| 12 | +LL | / unsafe { |
| 13 | +LL | | |
| 14 | +LL | | let _ = *ptr; |
| 15 | +LL | | } |
| 16 | + | |_____^ expected `u32`, found `()` |
| 17 | + |
| 18 | +error[E0308]: mismatched types |
| 19 | + --> $DIR/diverges-not.rs:27:18 |
| 20 | + | |
| 21 | +LL | _ => {} |
| 22 | + | ^^ expected `u32`, found `()` |
| 23 | + |
| 24 | +error[E0308]: mismatched types |
| 25 | + --> $DIR/diverges-not.rs:32:30 |
| 26 | + | |
| 27 | +LL | fn binding_void(_x: Void) -> u32 {} |
| 28 | + | ------------ ^^^ expected `u32`, found `()` |
| 29 | + | | |
| 30 | + | implicitly returns `()` as its body has no tail or `return` expression |
| 31 | + |
| 32 | +error[E0308]: mismatched types |
| 33 | + --> $DIR/diverges-not.rs:37:5 |
| 34 | + | |
| 35 | +LL | / unsafe { |
| 36 | +LL | | |
| 37 | +LL | | let _x = *ptr; |
| 38 | +LL | | } |
| 39 | + | |_____^ expected `u32`, found `()` |
| 40 | + |
| 41 | +error[E0308]: mismatched types |
| 42 | + --> $DIR/diverges-not.rs:47:19 |
| 43 | + | |
| 44 | +LL | _x => {} |
| 45 | + | ^^ expected `u32`, found `()` |
| 46 | + |
| 47 | +error[E0308]: mismatched types |
| 48 | + --> $DIR/diverges-not.rs:54:37 |
| 49 | + | |
| 50 | +LL | if let true = true && let ! = x {} |
| 51 | + | ^^ expected `u32`, found `()` |
| 52 | + |
| 53 | +error: aborting due to 7 previous errors |
| 54 | + |
| 55 | +For more information about this error, try `rustc --explain E0308`. |
0 commit comments