File tree Expand file tree Collapse file tree 3 files changed +3
-21
lines changed Expand file tree Collapse file tree 3 files changed +3
-21
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ repository = "https://github.com/rust-lang/rust.git"
88description = " The Rust core allocation and collections library"
99autotests = false
1010autobenches = false
11- edition = " 2021 "
11+ edition = " 2024 "
1212
1313[lib ]
1414test = false
Original file line number Diff line number Diff line change 11// Tests a small handful of macros in the standard library how they handle the
22// new behavior introduced in 2024 that allows `const{}` expressions.
33
4+ //@ check-pass
5+
46fn main ( ) {
57 assert_eq ! ( 0 , const { 0 } ) ;
68 assert_eq ! ( const { 0 } , const { 0 } ) ;
79 assert_eq ! ( const { 0 } , 0 ) ;
810
911 let _: Vec < Vec < String > > = vec ! [ const { vec![ ] } ] ;
10- //~^ ERROR: no rules expected keyword `const`
1112 let _: Vec < Vec < String > > = vec ! [ const { vec![ ] } ; 10 ] ;
12- //~^ ERROR: no rules expected keyword `const`
1313}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments