Allow let bindings everywhere

This commit is contained in:
Oliver Scherer 2018-11-24 14:38:31 +01:00
parent 7ec3c10d7e
commit d62bcad38d
76 changed files with 454 additions and 700 deletions

View file

@ -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() {}

View file

@ -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`.