rust/src/test/ui/issues/issue-43105.stderr

26 lines
707 B
Plaintext
Raw Normal View History

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
For more information about this error, try `rustc --explain E0015`.