summary refs log tree commit diff
path: root/src/test/ui/static/static-mut-not-constant.stderr
blob: d2c6ba6a2f85a70dc95ecfb4bd66b4c0592327c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0010]: allocations are not allowed in statics
  --> $DIR/static-mut-not-constant.rs:3:28
   |
LL | static mut a: Box<isize> = box 3;
   |                            ^^^^^ allocation not allowed in statics

error[E0019]: static contains unimplemented expression type
  --> $DIR/static-mut-not-constant.rs:3:32
   |
LL | static mut a: Box<isize> = box 3;
   |                                ^

error: aborting due to 2 previous errors

Some errors occurred: E0010, E0019.
For more information about an error, try `rustc --explain E0010`.