rust/src/test/ui/issues/issue-46843.stderr
2019-06-13 21:05:21 +01:00

23 lines
718 B
Plaintext

error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants
--> $DIR/issue-46843.rs:7:26
|
LL | pub const Q: i32 = match non_const() {
| ^^^^^^^^^^^
error[E0019]: constant contains unimplemented expression type
--> $DIR/issue-46843.rs:7:26
|
LL | pub const Q: i32 = match non_const() {
| ^^^^^^^^^^^
error[E0019]: constant contains unimplemented expression type
--> $DIR/issue-46843.rs:10:5
|
LL | Thing::This => 1,
| ^^^^^^^^^^^
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0015, E0019.
For more information about an error, try `rustc --explain E0015`.