1
Fork 0
rust/src/test/ui/consts/const-eval/mod-static-with-const-fn.stderr

17 lines
487 B
Text
Raw Normal View History

2018-11-24 14:38:31 +01:00
error[E0019]: static contains unimplemented expression type
2018-12-25 08:56:47 -07:00
--> $DIR/mod-static-with-const-fn.rs:19:5
2018-11-24 14:38:31 +01:00
|
LL | *FOO.0.get() = 5;
| ^^^^^^^^^^^^^^^^
error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
2018-12-25 08:56:47 -07:00
--> $DIR/mod-static-with-const-fn.rs:22:5
|
LL | foo();
| ^^^^^
2018-11-24 14:38:31 +01:00
error: aborting due to 2 previous errors
2018-11-24 14:38:31 +01:00
Some errors occurred: E0015, E0019.
For more information about an error, try `rustc --explain E0015`.