Closed
Description
This code fails to compile in Rust 2024 when it should pass:
//@ edition:2024
fn main() {
assert_eq!(0, const { 0 });
//~^ ERROR no rules expected keyword `const`
}
This will be fixed, I expect, by migrating the standard library to Rust 2024, and when doing that, by using the :expr
rather than :expr_2021
macro fragment specifier in assert_eq
and similar macros.
cc @rust-lang/wg-macros @compiler-errors @ehuss