]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-50577.stderr
0c3ba2ea4f94dabe1d95ab15c10e7ad590f6cefb
[rust.git] / src / test / ui / issues / issue-50577.stderr
1 error[E0317]: if may be missing an else clause
2   --> $DIR/issue-50577.rs:3:16
3    |
4 LL |         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
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0317`.