summary refs log tree commit diff
path: root/src/test/ui/consts/const-call.stderr
blob: 12a6983ba1f4540a3fd5674fbe2e5ce6023aeba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants
  --> $DIR/const-call.rs:6:17
   |
LL |     let _ = [0; f(2)];
   |                 ^^^^

error[E0080]: evaluation of constant value failed
  --> $DIR/const-call.rs:6:17
   |
LL |     let _ = [0; f(2)];
   |                 ^^^^ calling non-const function `f`

error: aborting due to 2 previous errors

Some errors occurred: E0015, E0080.
For more information about an error, try `rustc --explain E0015`.