rust/tests/ui/inline-const/const-match-pat-generic.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
539 B
Plaintext
Raw Normal View History

error[E0158]: constant pattern cannot depend on generic parameters
--> $DIR/const-match-pat-generic.rs:7:9
2021-08-14 17:29:04 +00:00
|
LL | const { V } => {},
| ^^^^^^^^^^^ `const` depends on a generic parameter
2021-08-14 17:29:04 +00:00
error[E0158]: constant pattern cannot depend on generic parameters
--> $DIR/const-match-pat-generic.rs:19:9
|
LL | const { f(V) } => {},
| ^^^^^^^^^^^^^^ `const` depends on a generic parameter
2023-02-27 17:43:39 +00:00
error: aborting due to 2 previous errors
2021-08-14 17:29:04 +00:00
For more information about this error, try `rustc --explain E0158`.