2018-08-08 07:28:26 -05:00
|
|
|
error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants
|
|
|
|
--> $DIR/const-call.rs:16:17
|
|
|
|
|
|
|
|
|
LL | let _ = [0; f(2)];
|
|
|
|
| ^^^^
|
|
|
|
|
2018-11-16 11:05:08 -06:00
|
|
|
error[E0080]: evaluation of constant value failed
|
|
|
|
--> $DIR/const-call.rs:16:17
|
|
|
|
|
|
|
|
|
LL | let _ = [0; f(2)];
|
|
|
|
| ^^^^ calling non-const function `f`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-08-08 07:28:26 -05:00
|
|
|
|
2018-11-16 11:05:08 -06:00
|
|
|
Some errors occurred: E0015, E0080.
|
|
|
|
For more information about an error, try `rustc --explain E0015`.
|