fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
715 B18 linesraw
1error[E0317]: if may be missing an else clause
2  --> $DIR/issue-50577.rs:3:16
3   |
4LL |         Drop = assert_eq!(1, 1)
5   |                ^^^^^^^^^^^^^^^^
6   |                |
7   |                expected (), found isize
8   |                found here
9   |
10   = note: expected type `()`
11              found type `isize`
12   = note: `if` expressions without `else` evaluate to `()`
13   = help: consider adding an `else` block that evaluates to the expected type
14   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0317`.