fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
2.1 KiB47 linesraw
1error[E0658]: `match` is not allowed in a `const`
2  --> $DIR/issue-50577.rs:7:16
3   |
4LL |         Drop = assert_eq!(1, 1)
5   |                ^^^^^^^^^^^^^^^^
6   |
7   = note: for more information, see https://github.com/rust-lang/rust/issues/49146
8   = help: add `#![feature(const_if_match)]` to the crate attributes to enable
9   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
10
11error[E0658]: `if` is not allowed in a `const`
12  --> $DIR/issue-50577.rs:7:16
13   |
14LL |         Drop = assert_eq!(1, 1)
15   |                ^^^^^^^^^^^^^^^^
16   |
17   = note: for more information, see https://github.com/rust-lang/rust/issues/49146
18   = help: add `#![feature(const_if_match)]` to the crate attributes to enable
19   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
20
21error[E0658]: `match` is not allowed in a `const`
22  --> $DIR/issue-50577.rs:7:16
23   |
24LL |         Drop = assert_eq!(1, 1)
25   |                ^^^^^^^^^^^^^^^^
26   |
27   = note: for more information, see https://github.com/rust-lang/rust/issues/49146
28   = help: add `#![feature(const_if_match)]` to the crate attributes to enable
29   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
30
31error[E0317]: `if` may be missing an `else` clause
32  --> $DIR/issue-50577.rs:7:16
33   |
34LL |         Drop = assert_eq!(1, 1)
35   |                ^^^^^^^^^^^^^^^^
36   |                |
37   |                expected `()`, found `isize`
38   |                found here
39   |
40   = note: `if` expressions without `else` evaluate to `()`
41   = help: consider adding an `else` block that evaluates to the expected type
42   = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
43
44error: aborting due to 4 previous errors
45
46Some errors have detailed explanations: E0317, E0658.
47For more information about an error, try `rustc --explain E0317`.