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