]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-43105.stderr
Rollup merge of #106949 - compiler-errors:is-poly, r=BoxyUwU
[rust.git] / tests / ui / consts / issue-43105.stderr
1 error[E0015]: cannot call non-const fn `xyz` in constants
2   --> $DIR/issue-43105.rs:3:17
3    |
4 LL | const NUM: u8 = xyz();
5    |                 ^^^^^
6    |
7    = note: calls in constants are limited to constant functions, tuple structs and tuple variants
8
9 error: could not evaluate constant pattern
10   --> $DIR/issue-43105.rs:8:9
11    |
12 LL |         NUM => unimplemented!(),
13    |         ^^^
14
15 error: could not evaluate constant pattern
16   --> $DIR/issue-43105.rs:8:9
17    |
18 LL |         NUM => unimplemented!(),
19    |         ^^^
20
21 error: aborting due to 3 previous errors
22
23 For more information about this error, try `rustc --explain E0015`.