Allow let bindings everywhere
This commit is contained in:
parent
7ec3c10d7e
commit
d62bcad38d
76 changed files with 454 additions and 700 deletions
|
|
@ -12,5 +12,6 @@
|
|||
|
||||
static mut a: Box<isize> = box 3;
|
||||
//~^ ERROR allocations are not allowed in statics
|
||||
//~| ERROR static contains unimplemented expression
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,13 @@ error[E0010]: allocations are not allowed in statics
|
|||
LL | static mut a: Box<isize> = box 3;
|
||||
| ^^^^^ allocation not allowed in statics
|
||||
|
||||
error: aborting due to previous error
|
||||
error[E0019]: static contains unimplemented expression type
|
||||
--> $DIR/static-mut-not-constant.rs:13:32
|
||||
|
|
||||
LL | static mut a: Box<isize> = box 3;
|
||||
| ^
|
||||
|
||||
For more information about this error, try `rustc --explain E0010`.
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
Some errors occurred: E0010, E0019.
|
||||
For more information about an error, try `rustc --explain E0010`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue