summary refs log tree commit diff
path: root/src/test/ui/issues/issue-46843.stderr
blob: 9b752f41f59e4a9db707c7308fc9def3729bf4be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants
  --> $DIR/issue-46843.rs:17:26
   |
LL | pub const Q: i32 = match non_const() { //~ ERROR E0015
   |                          ^^^^^^^^^^^

error[E0019]: constant contains unimplemented expression type
  --> $DIR/issue-46843.rs:18:5
   |
LL |     Thing::This => 1, //~ ERROR unimplemented expression type
   |     ^^^^^^^^^^^

error: aborting due to 2 previous errors

Some errors occurred: E0015, E0019.
For more information about an error, try `rustc --explain E0015`.