fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
983 B23 linesraw
1error[E0658]: `if` is not allowed in a `const`
2  --> $DIR/assert.rs:8:15
3   |
4LL | const _: () = assert!(true);
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/assert.rs:12:15
13   |
14LL | const _: () = assert!(false);
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: aborting due to 2 previous errors
22
23For more information about this error, try `rustc --explain E0658`.