error[E0658]: `if` is not allowed in a `const` --> $DIR/assert.rs:8:15 | LL | const _: () = assert!(true); | ^^^^^^^^^^^^^ | = note: for more information, see https://github.com/rust-lang/rust/issues/49146 = help: add `#![feature(const_if_match)]` to the crate attributes to enable error[E0658]: `if` is not allowed in a `const` --> $DIR/assert.rs:12:15 | LL | const _: () = assert!(false); | ^^^^^^^^^^^^^^ | = note: for more information, see https://github.com/rust-lang/rust/issues/49146 = help: add `#![feature(const_if_match)]` to the crate attributes to enable error: aborting due to 2 previous errors For more information about this error, try `rustc --explain E0658`.