1 error[E0015]: cannot call non-const fn `xyz` in constants
2 --> $DIR/issue-43105.rs:3:17
4 LL | const NUM: u8 = xyz();
7 = note: calls in constants are limited to constant functions, tuple structs and tuple variants
9 error: could not evaluate constant pattern
10 --> $DIR/issue-43105.rs:8:9
12 LL | NUM => unimplemented!(),
15 error: could not evaluate constant pattern
16 --> $DIR/issue-43105.rs:8:9
18 LL | NUM => unimplemented!(),
21 error: aborting due to 3 previous errors
23 For more information about this error, try `rustc --explain E0015`.