]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/issue-92074-macro-ice.stderr
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / pattern / issue-92074-macro-ice.stderr
1 error: arbitrary expressions aren't allowed in patterns
2   --> $DIR/issue-92074-macro-ice.rs:18:25
3    |
4 LL |     () => { force_expr!(Vec::new()) }
5    |                         ^^^^^^^^^^
6 ...
7 LL |     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
12 error: arbitrary expressions aren't allowed in patterns
13   --> $DIR/issue-92074-macro-ice.rs:22:24
14    |
15 LL |     () => { force_pat!(get_usize(), get_usize()) }
16    |                        ^^^^^^^^^^^
17 ...
18 LL |     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
23 error: arbitrary expressions aren't allowed in patterns
24   --> $DIR/issue-92074-macro-ice.rs:22:37
25    |
26 LL |     () => { force_pat!(get_usize(), get_usize()) }
27    |                                     ^^^^^^^^^^^
28 ...
29 LL |     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
34 error: aborting due to 3 previous errors
35