fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
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: see issue #49146 <https://github.com/rust-lang/rust/issues/49146> for more information 8 = help: add `#![feature(const_if_match)]` to the crate attributes to enable 9 = note: this error originates in a macro (in Nightly builds, run with -Z 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: see issue #49146 <https://github.com/rust-lang/rust/issues/49146> for more information 18 = help: add `#![feature(const_if_match)]` to the crate attributes to enable 19 = note: this error originates in a macro (in Nightly builds, run with -Z 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: see issue #49146 <https://github.com/rust-lang/rust/issues/49146> for more information 28 = help: add `#![feature(const_if_match)]` to the crate attributes to enable 29 = note: this error originates in a macro (in Nightly builds, run with -Z 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 (in Nightly builds, run with -Z 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`.