]> git.lizzy.rs Git - rust.git/blob - src/test/ui/static/static-mut-not-constant.stderr
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / static / static-mut-not-constant.stderr
1 error[E0010]: allocations are not allowed in statics
2   --> $DIR/static-mut-not-constant.rs:3:28
3    |
4 LL | static mut a: Box<isize> = box 3;
5    |                            ^^^^^ allocation not allowed in statics
6
7 error: aborting due to previous error
8
9 For more information about this error, try `rustc --explain E0010`.