diff options
| author | est31 <MTest31@outlook.com> | 2024-04-28 15:14:32 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2024-04-28 21:27:26 +0200 |
| commit | 4284bca7209fc9eb03a8db5a388479ff723cc70d (patch) | |
| tree | c1a17a7f511d00f76c718c030334bf384f94aa70 /tests/ui/pattern | |
| parent | 4d570eea025a19564429eb52b34ec34e14659f55 (diff) | |
| download | rust-4284bca7209fc9eb03a8db5a388479ff723cc70d.tar.gz rust-4284bca7209fc9eb03a8db5a388479ff723cc70d.zip | |
Add a note to the ArbitraryExpressionInPattern error
Diffstat (limited to 'tests/ui/pattern')
| -rw-r--r-- | tests/ui/pattern/issue-92074-macro-ice.stderr | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/pattern/issue-92074-macro-ice.stderr b/tests/ui/pattern/issue-92074-macro-ice.stderr index b340afff010..bf53eb4bbcd 100644 --- a/tests/ui/pattern/issue-92074-macro-ice.stderr +++ b/tests/ui/pattern/issue-92074-macro-ice.stderr @@ -7,6 +7,7 @@ LL | () => { force_expr!(Vec::new()) } LL | assert!(matches!(x, En::A(make_vec!()))); | ----------- in this macro invocation | + = note: the :expr fragment specifier forces the metavariable's content to be an expression = note: this error originates in the macro `make_vec` (in Nightly builds, run with -Z macro-backtrace for more info) error: arbitrary expressions aren't allowed in patterns @@ -18,6 +19,7 @@ LL | () => { force_pat!(get_usize(), get_usize()) } LL | assert!(matches!(5, make_pat!())); | ----------- in this macro invocation | + = note: the :expr fragment specifier forces the metavariable's content to be an expression = note: this error originates in the macro `make_pat` (in Nightly builds, run with -Z macro-backtrace for more info) error: arbitrary expressions aren't allowed in patterns @@ -29,6 +31,7 @@ LL | () => { force_pat!(get_usize(), get_usize()) } LL | assert!(matches!(5, make_pat!())); | ----------- in this macro invocation | + = note: the :expr fragment specifier forces the metavariable's content to be an expression = note: this error originates in the macro `make_pat` (in Nightly builds, run with -Z macro-backtrace for more info) error: aborting due to 3 previous errors |
