]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0010.stderr
Stabilize `let` bindings and destructuring in constants and const fn
[rust.git] / src / test / ui / error-codes / E0010.stderr
1 error[E0010]: allocations are not allowed in constants
2   --> $DIR/E0010.rs:4:24
3    |
4 LL | const CON : Box<i32> = box 0; //~ ERROR E0010
5    |                        ^^^^^ allocation not allowed in constants
6
7 error[E0019]: constant contains unimplemented expression type
8   --> $DIR/E0010.rs:4:28
9    |
10 LL | const CON : Box<i32> = box 0; //~ ERROR E0010
11    |                            ^
12
13 error: aborting due to 2 previous errors
14
15 Some errors occurred: E0010, E0019.
16 For more information about an error, try `rustc --explain E0010`.