Skip to content

Commit 6ed596e

Browse files
committed
Update tests to changes on master
1 parent b9d74fc commit 6ed596e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Diff for: src/test/ui/consts/static_mut_containing_mut_ref2.rs

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ 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
78

89
fn main() {}

Diff for: src/test/ui/consts/static_mut_containing_mut_ref2.stderr

+9-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ 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: aborting due to previous error
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
814

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

0 commit comments

Comments
 (0)