]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
dfeec247 1error[E0317]: `if` may be missing an `else` clause
60c5eb7d 2 --> $DIR/issue-50577.rs:7:16
8faf50e0
XL
3 |
4LL | Drop = assert_eq!(1, 1)
532ac7d7
XL
5 | ^^^^^^^^^^^^^^^^
6 | |
60c5eb7d 7 | expected `()`, found `isize`
532ac7d7 8 | found here
8faf50e0 9 |
532ac7d7
XL
10 = note: `if` expressions without `else` evaluate to `()`
11 = help: consider adding an `else` block that evaluates to the expected type
74b04a01 12 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
8faf50e0 13
e1599b0c 14error: aborting due to previous error
8faf50e0 15
e1599b0c 16For more information about this error, try `rustc --explain E0317`.