]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-46843.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-46843.stderr
1 error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants
2   --> $DIR/issue-46843.rs:17:26
3    |
4 LL | pub const Q: i32 = match non_const() { //~ ERROR E0015
5    |                          ^^^^^^^^^^^
6
7 error[E0019]: constant contains unimplemented expression type
8   --> $DIR/issue-46843.rs:18:5
9    |
10 LL |     Thing::This => 1, //~ ERROR unimplemented expression type
11    |     ^^^^^^^^^^^
12
13 error: aborting due to 2 previous errors
14
15 Some errors occurred: E0015, E0019.
16 For more information about an error, try `rustc --explain E0015`.