diff options
Diffstat (limited to 'src/test/ui/check-static-values-constraints.nll.stderr')
| -rw-r--r-- | src/test/ui/check-static-values-constraints.nll.stderr | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/test/ui/check-static-values-constraints.nll.stderr b/src/test/ui/check-static-values-constraints.nll.stderr index 576322ff5c1..5522e22fb1f 100644 --- a/src/test/ui/check-static-values-constraints.nll.stderr +++ b/src/test/ui/check-static-values-constraints.nll.stderr @@ -58,22 +58,13 @@ LL | let y = { static x: Box<isize> = box 3; x }; | cannot move out of static item | help: consider borrowing here: `&x` -error[E0507]: cannot move out of immutable static item `x` - --> $DIR/check-static-values-constraints.rs:120:45 - | -LL | let y = { static x: Box<isize> = box 3; x }; - | ^ - | | - | cannot move out of immutable static item `x` - | cannot move - error[E0010]: allocations are not allowed in statics --> $DIR/check-static-values-constraints.rs:120:38 | LL | let y = { static x: Box<isize> = box 3; x }; | ^^^^^ allocation not allowed in statics -error: aborting due to 11 previous errors +error: aborting due to 10 previous errors Some errors occurred: E0010, E0015, E0493, E0507. For more information about an error, try `rustc --explain E0010`. |
