File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1
1
//@ compile-flags: --edition=2024 -Z unstable-options
2
2
//@ aux-build: metavar_2018.rs
3
+ //@ known-bug: #130484
3
4
//@ run-pass
4
5
5
6
// This test captures the behavior of macro-generating-macros with fragment
@@ -23,19 +24,15 @@ fn main() {
23
24
let from_2024 = is_expr_from_2024 ! ( const { 0 } ) ;
24
25
dbg ! ( from_2024) ;
25
26
26
- // These capture the current, empirically determined behavior.
27
- // It's not clear whether this is the desired behavior.
28
27
assert ! ( !from_2018) ;
29
- assert ! ( !from_2024) ;
28
+ assert ! ( !from_2024) ; // from_2024 will be true once #130484 is fixed
30
29
31
30
// Check pat
32
31
let from_2018 = is_pat_from_2018 ! ( A | B ) ;
33
32
dbg ! ( from_2018) ;
34
33
let from_2024 = is_pat_from_2024 ! ( A | B ) ;
35
34
dbg ! ( from_2024) ;
36
35
37
- // These capture the current, empirically determined behavior.
38
- // It's not clear whether this is the desired behavior.
39
36
assert ! ( !from_2018) ;
40
- assert ! ( !from_2024) ;
37
+ assert ! ( !from_2024) ; // from_2024 will be true once #130484 is fixed
41
38
}
You can’t perform that action at this time.
0 commit comments