2018-07-15 16:11:54 -05:00
|
|
|
error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants
|
|
|
|
--> $DIR/issue-43105.rs:13:17
|
|
|
|
|
|
|
|
|
LL | const NUM: u8 = xyz();
|
|
|
|
| ^^^^^
|
|
|
|
|
2018-11-16 11:38:28 -06:00
|
|
|
error: any use of this value will cause an error
|
|
|
|
--> $DIR/issue-43105.rs:13:1
|
|
|
|
|
|
|
|
|
LL | const NUM: u8 = xyz();
|
|
|
|
| ^^^^^^^^^^^^^^^^-----^
|
|
|
|
| |
|
|
|
|
| calling non-const function `xyz`
|
|
|
|
|
|
|
|
|
= note: #[deny(const_err)] on by default
|
|
|
|
|
|
|
|
error: could not evaluate constant pattern
|
|
|
|
--> $DIR/issue-43105.rs:19:9
|
|
|
|
|
|
|
|
|
LL | NUM => unimplemented!(),
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2018-07-15 16:11:54 -05:00
|
|
|
|
2018-08-31 06:50:14 -05:00
|
|
|
For more information about this error, try `rustc --explain E0015`.
|