fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.3 KiB35 linesraw
1error: arbitrary expressions aren't allowed in patterns
2  --> $DIR/issue-92074-macro-ice.rs:18:25
3   |
4LL |     () => { force_expr!(Vec::new()) }
5   |                         ^^^^^^^^^^
6...
7LL |     assert!(matches!(x, En::A(make_vec!())));
8   |                               ----------- in this macro invocation
9   |
10   = note: this error originates in the macro `make_vec` (in Nightly builds, run with -Z macro-backtrace for more info)
11
12error: arbitrary expressions aren't allowed in patterns
13  --> $DIR/issue-92074-macro-ice.rs:22:24
14   |
15LL |     () => { force_pat!(get_usize(), get_usize()) }
16   |                        ^^^^^^^^^^^
17...
18LL |     assert!(matches!(5, make_pat!()));
19   |                         ----------- in this macro invocation
20   |
21   = note: this error originates in the macro `make_pat` (in Nightly builds, run with -Z macro-backtrace for more info)
22
23error: arbitrary expressions aren't allowed in patterns
24  --> $DIR/issue-92074-macro-ice.rs:22:37
25   |
26LL |     () => { force_pat!(get_usize(), get_usize()) }
27   |                                     ^^^^^^^^^^^
28...
29LL |     assert!(matches!(5, make_pat!()));
30   |                         ----------- in this macro invocation
31   |
32   = note: this error originates in the macro `make_pat` (in Nightly builds, run with -Z macro-backtrace for more info)
33
34error: aborting due to 3 previous errors
35