rust/src/test/ui/mir_check_nonconst.stderr
2018-04-18 10:56:43 +03:00

10 lines
310 B
Plaintext

error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
--> $DIR/mir_check_nonconst.rs:18:19
|
LL | static foo: Foo = bar();
| ^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0015`.