]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/control-flow/issue-50577.if_match.stderr
New upstream version 1.45.0+dfsg1
[rustc.git] / src / test / ui / consts / control-flow / issue-50577.if_match.stderr
1 error[E0317]: `if` may be missing an `else` clause
2 --> $DIR/issue-50577.rs:7:16
3 |
4 LL | Drop = assert_eq!(1, 1)
5 | ^^^^^^^^^^^^^^^^
6 | |
7 | expected `()`, found `isize`
8 | found here
9 |
10 = note: `if` expressions without `else` evaluate to `()`
11 = help: consider adding an `else` block that evaluates to the expected type
12 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0317`.