// Tests a small handful of macros in the standard library how they handle the | |
// new behavior introduced in 2024 that allows `const{}` expressions. | |
//@ check-pass | |
fn main() { | |
assert_eq!(0, const { 0 }); | |
assert_eq!(const { 0 }, const { 0 }); | |
assert_eq!(const { 0 }, 0); | |
let _: Vec<Vec<String>> = vec![const { vec![] }]; | |
let _: Vec<Vec<String>> = vec![const { vec![] }; 10]; | |
} |