]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-50577.stderr
Remove E0308 note when primary label has all info
[rust.git] / src / test / ui / issues / issue-50577.stderr
1 error[E0744]: `match` is not allowed in a `const`
2   --> $DIR/issue-50577.rs:3:16
3    |
4 LL |         Drop = assert_eq!(1, 1)
5    |                ^^^^^^^^^^^^^^^^
6    |
7    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
8
9 error[E0744]: `if` is not allowed in a `const`
10   --> $DIR/issue-50577.rs:3:16
11    |
12 LL |         Drop = assert_eq!(1, 1)
13    |                ^^^^^^^^^^^^^^^^
14    |
15    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
16
17 error[E0744]: `match` is not allowed in a `const`
18   --> $DIR/issue-50577.rs:3:16
19    |
20 LL |         Drop = assert_eq!(1, 1)
21    |                ^^^^^^^^^^^^^^^^
22    |
23    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
24
25 error[E0317]: if may be missing an else clause
26   --> $DIR/issue-50577.rs:3:16
27    |
28 LL |         Drop = assert_eq!(1, 1)
29    |                ^^^^^^^^^^^^^^^^
30    |                |
31    |                expected (), found isize
32    |                found here
33    |
34    = note: `if` expressions without `else` evaluate to `()`
35    = help: consider adding an `else` block that evaluates to the expected type
36    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
37
38 error: aborting due to 4 previous errors
39
40 Some errors have detailed explanations: E0317, E0744.
41 For more information about an error, try `rustc --explain E0317`.