Skip to content

Commit 7d5b5ff

Browse files
committed
Update nll stderr files
1 parent 59eff14 commit 7d5b5ff

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

src/test/ui/error-codes/E0017.nll.stderr

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ error[E0017]: references in constants may only refer to immutable values
44
LL | const CR: &'static mut i32 = &mut C; //~ ERROR E0017
55
| ^^^^^^ constants require immutable values
66

7+
error: cannot mutate statics in the initializer of another static
8+
--> $DIR/E0017.rs:15:39
9+
|
10+
LL | static STATIC_REF: &'static mut i32 = &mut X; //~ ERROR E0017
11+
| ^^^^^^
12+
713
error[E0017]: references in statics may only refer to immutable values
814
--> $DIR/E0017.rs:15:39
915
|
@@ -17,12 +23,12 @@ LL | static STATIC_REF: &'static mut i32 = &mut X; //~ ERROR E0017
1723
| ^^^^^^ cannot borrow as mutable
1824

1925
error[E0017]: references in statics may only refer to immutable values
20-
--> $DIR/E0017.rs:17:38
26+
--> $DIR/E0017.rs:18:38
2127
|
2228
LL | static CONST_REF: &'static mut i32 = &mut C; //~ ERROR E0017
2329
| ^^^^^^ statics require immutable values
2430

25-
error: aborting due to 4 previous errors
31+
error: aborting due to 5 previous errors
2632

2733
Some errors occurred: E0017, E0596.
2834
For more information about an error, try `rustc --explain E0017`.

src/test/ui/error-codes/E0388.nll.stderr

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ error[E0017]: references in constants may only refer to immutable values
44
LL | const CR: &'static mut i32 = &mut C; //~ ERROR E0017
55
| ^^^^^^ constants require immutable values
66

7+
error: cannot mutate statics in the initializer of another static
8+
--> $DIR/E0388.rs:15:39
9+
|
10+
LL | static STATIC_REF: &'static mut i32 = &mut X; //~ ERROR E0017
11+
| ^^^^^^
12+
713
error[E0017]: references in statics may only refer to immutable values
814
--> $DIR/E0388.rs:15:39
915
|
@@ -17,12 +23,12 @@ LL | static STATIC_REF: &'static mut i32 = &mut X; //~ ERROR E0017
1723
| ^^^^^^ cannot borrow as mutable
1824

1925
error[E0017]: references in statics may only refer to immutable values
20-
--> $DIR/E0388.rs:17:38
26+
--> $DIR/E0388.rs:18:38
2127
|
2228
LL | static CONST_REF: &'static mut i32 = &mut C; //~ ERROR E0017
2329
| ^^^^^^ statics require immutable values
2430

25-
error: aborting due to 4 previous errors
31+
error: aborting due to 5 previous errors
2632

2733
Some errors occurred: E0017, E0596.
2834
For more information about an error, try `rustc --explain E0017`.

0 commit comments

Comments
 (0)