1 error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants
2 --> $DIR/issue-43105.rs:3:17
4 LL | const NUM: u8 = xyz();
7 error: any use of this value will cause an error
8 --> $DIR/issue-43105.rs:3:17
10 LL | const NUM: u8 = xyz();
11 | ----------------^^^^^-
13 | calling non-const function `xyz`
15 = note: `#[deny(const_err)]` on by default
17 error: could not evaluate constant pattern
18 --> $DIR/issue-43105.rs:9:9
20 LL | NUM => unimplemented!(),
23 error: could not evaluate constant pattern
24 --> $DIR/issue-43105.rs:9:9
26 LL | NUM => unimplemented!(),
29 error: aborting due to 4 previous errors
31 For more information about this error, try `rustc --explain E0015`.