]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-43105.stderr
New upstream version 1.42.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-43105.stderr
1 error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants
2 --> $DIR/issue-43105.rs:3:17
3 |
4 LL | const NUM: u8 = xyz();
5 | ^^^^^
6
7 error: any use of this value will cause an error
8 --> $DIR/issue-43105.rs:3:17
9 |
10 LL | const NUM: u8 = xyz();
11 | ----------------^^^^^-
12 | |
13 | calling non-const function `xyz`
14 |
15 = note: `#[deny(const_err)]` on by default
16
17 error: could not evaluate constant pattern
18 --> $DIR/issue-43105.rs:9:9
19 |
20 LL | NUM => unimplemented!(),
21 | ^^^
22
23 error: could not evaluate constant pattern
24 --> $DIR/issue-43105.rs:9:9
25 |
26 LL | NUM => unimplemented!(),
27 | ^^^
28
29 error: aborting due to 4 previous errors
30
31 For more information about this error, try `rustc --explain E0015`.