fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
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: could not evaluate constant pattern 24 --> $DIR/issue-43105.rs:9:9 25 | 26LL | NUM => unimplemented!(), 27 | ^^^ 28 29error: aborting due to 4 previous errors 30 31For more information about this error, try `rustc --explain E0015`.