]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-eval/mod-static-with-const-fn.stderr
New upstream version 1.33.0+dfsg1
[rustc.git] / src / test / ui / consts / const-eval / mod-static-with-const-fn.stderr
CommitLineData
0731742a
XL
1error[E0019]: static contains unimplemented expression type
2 --> $DIR/mod-static-with-const-fn.rs:18:5
3 |
4LL | *FOO.0.get() = 5;
5 | ^^^^^^^^^^^^^^^^
6
b7449926 7error[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
10LL | foo();
11 | ^^^^^
b7449926 12
0731742a 13error: aborting due to 2 previous errors
b7449926 14
0731742a
XL
15Some errors occurred: E0015, E0019.
16For more information about an error, try `rustc --explain E0015`.