]> git.proxmox.com Git - rustc.git/blame - src/test/ui/inline-const/const-match-pat-generic.stderr
New upstream version 1.59.0+dfsg1
[rustc.git] / src / test / ui / inline-const / const-match-pat-generic.stderr
CommitLineData
5869c6ff 1error[E0158]: const parameters cannot be referenced in patterns
a2a8927a 2 --> $DIR/const-match-pat-generic.rs:9:9
5869c6ff 3 |
a2a8927a
XL
4LL | const { V } => {},
5 | ^^^^^^^^^^^
5869c6ff 6
a2a8927a
XL
7error: constant pattern depends on a generic parameter
8 --> $DIR/const-match-pat-generic.rs:21:9
9 |
10LL | const { f(V) } => {},
11 | ^^^^^^^^^^^^^^
12
13error: constant pattern depends on a generic parameter
14 --> $DIR/const-match-pat-generic.rs:21:9
15 |
16LL | const { f(V) } => {},
17 | ^^^^^^^^^^^^^^
18
19error: aborting due to 3 previous errors
5869c6ff
XL
20
21For more information about this error, try `rustc --explain E0158`.