fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
505 B16 linesraw
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
7error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
8  --> $DIR/mod-static-with-const-fn.rs:21:5
9   |
10LL |     foo();
11   |     ^^^^^
12
13error: aborting due to 2 previous errors
14
15Some errors have detailed explanations: E0015, E0019.
16For more information about an error, try `rustc --explain E0015`.