diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-09-29 17:31:04 -0700 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-09-29 19:20:33 -0700 |
| commit | 51fbd555f07febe07d2b8c5beab6f3520bebe460 (patch) | |
| tree | 362b82c667743b4d5dc7c8c619299dd33ac24465 /src/test/ui/static | |
| parent | b400871b9c07951d79dd9158af44dfdebcb8ad65 (diff) | |
| download | rust-51fbd555f07febe07d2b8c5beab6f3520bebe460.tar.gz rust-51fbd555f07febe07d2b8c5beab6f3520bebe460.zip | |
Bless tests
Diffstat (limited to 'src/test/ui/static')
| -rw-r--r-- | src/test/ui/static/static-mut-not-constant.rs | 1 | ||||
| -rw-r--r-- | src/test/ui/static/static-mut-not-constant.stderr | 13 |
2 files changed, 2 insertions, 12 deletions
diff --git a/src/test/ui/static/static-mut-not-constant.rs b/src/test/ui/static/static-mut-not-constant.rs index 84d401c9fa6..2091fffd418 100644 --- a/src/test/ui/static/static-mut-not-constant.rs +++ b/src/test/ui/static/static-mut-not-constant.rs @@ -2,6 +2,5 @@ static mut a: Box<isize> = box 3; //~^ ERROR allocations are not allowed in statics -//~| ERROR static contains unimplemented expression type fn main() {} diff --git a/src/test/ui/static/static-mut-not-constant.stderr b/src/test/ui/static/static-mut-not-constant.stderr index a618b49d108..a0fa245156f 100644 --- a/src/test/ui/static/static-mut-not-constant.stderr +++ b/src/test/ui/static/static-mut-not-constant.stderr @@ -4,15 +4,6 @@ error[E0010]: allocations are not allowed in statics LL | static mut a: Box<isize> = box 3; | ^^^^^ allocation not allowed in statics -error[E0019]: static contains unimplemented expression type - --> $DIR/static-mut-not-constant.rs:3:32 - | -LL | static mut a: Box<isize> = box 3; - | ^ - | - = help: add `#![feature(const_mut_refs)]` to the crate attributes to enable - -error: aborting due to 2 previous errors +error: aborting due to previous error -Some errors have detailed explanations: E0010, E0019. -For more information about an error, try `rustc --explain E0010`. +For more information about this error, try `rustc --explain E0010`. |
