]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-43105.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.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:13:17
3    |
4 LL | const NUM: u8 = xyz();
5    |                 ^^^^^
6
7 error[E0080]: could not evaluate constant pattern
8   --> $DIR/issue-43105.rs:18:9
9    |
10 LL | const NUM: u8 = xyz();
11    |                 ----- calling non-const fn `xyz`
12 ...
13 LL |         NUM => unimplemented!(),
14    |         ^^^
15
16 error: aborting due to 2 previous errors
17
18 Some errors occurred: E0015, E0080.
19 For more information about an error, try `rustc --explain E0015`.