]>
Commit | Line | Data |
---|---|---|
0731742a XL |
1 | error[E0019]: static contains unimplemented expression type |
2 | --> $DIR/mod-static-with-const-fn.rs:18:5 | |
3 | | | |
4 | LL | *FOO.0.get() = 5; | |
5 | | ^^^^^^^^^^^^^^^^ | |
6 | ||
b7449926 | 7 | error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants |
0731742a | 8 | --> $DIR/mod-static-with-const-fn.rs:21:5 |
b7449926 | 9 | | |
a1dfa0c6 XL |
10 | LL | foo(); |
11 | | ^^^^^ | |
b7449926 | 12 | |
0731742a | 13 | error: aborting due to 2 previous errors |
b7449926 | 14 | |
0731742a XL |
15 | Some errors occurred: E0015, E0019. |
16 | For more information about an error, try `rustc --explain E0015`. |