summary refs log tree commit diff
path: root/src/test/ui/consts/const-eval/mod-static-with-const-fn.stderr
blob: 44ae1ecf04718383f918d0cd5cfb274104b7fbcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error[E0019]: static contains unimplemented expression type
  --> $DIR/mod-static-with-const-fn.rs:18:5
   |
LL |     *FOO.0.get() = 5;
   |     ^^^^^^^^^^^^^^^^
   |
   = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable

error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
  --> $DIR/mod-static-with-const-fn.rs:21:5
   |
LL |     foo();
   |     ^^^^^

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0015, E0019.
For more information about an error, try `rustc --explain E0015`.