]> git.proxmox.com Git - rustc.git/blob - src/test/ui/consts/control-flow/issue-46843.stock.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / consts / control-flow / issue-46843.stock.stderr
1 error[E0658]: `match` is not allowed in a `const`
2 --> $DIR/issue-46843.rs:11:20
3 |
4 LL | pub const Q: i32 = match non_const() {
5 | ____________________^
6 LL | |
7 LL | |
8 LL | | Thing::This => 1,
9 LL | | Thing::That => 0
10 LL | | };
11 | |_^
12 |
13 = note: for more information, see https://github.com/rust-lang/rust/issues/49146
14 = help: add `#![feature(const_if_match)]` to the crate attributes to enable
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0658`.