Skip to content

Commit 1cf854f

Browse files
committed
fix test output
1 parent e6c5332 commit 1cf854f

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/test/ui/consts/static_mut_containing_mut_ref2.rs

-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ static mut STDERR_BUFFER_SPACE: u8 = 0;
44

55
pub static mut STDERR_BUFFER: () = unsafe { *(&mut STDERR_BUFFER_SPACE) = 42; };
66
//~^ ERROR references in statics may only refer to immutable values
7-
//~| ERROR static contains unimplemented expression type
87

98
fn main() {}

src/test/ui/consts/static_mut_containing_mut_ref2.stderr

+2-9
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@ error[E0017]: references in statics may only refer to immutable values
44
LL | pub static mut STDERR_BUFFER: () = unsafe { *(&mut STDERR_BUFFER_SPACE) = 42; };
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ statics require immutable values
66

7-
error[E0019]: static contains unimplemented expression type
8-
--> $DIR/static_mut_containing_mut_ref2.rs:5:45
9-
|
10-
LL | pub static mut STDERR_BUFFER: () = unsafe { *(&mut STDERR_BUFFER_SPACE) = 42; };
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12-
13-
error: aborting due to 2 previous errors
7+
error: aborting due to previous error
148

15-
Some errors occurred: E0017, E0019.
16-
For more information about an error, try `rustc --explain E0017`.
9+
For more information about this error, try `rustc --explain E0017`.

0 commit comments

Comments
 (0)