You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/unsafe/ranged_ints3.stderr
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
error[E0133]: borrow of layout constrained field is unsafe and requires unsafe function or block
1
+
error[E0133]: borrow of layout constrained field with interior mutability is unsafe and requires unsafe function or block
2
2
--> $DIR/ranged_ints3.rs:10:13
3
3
|
4
-
LL | let y = &x.0; //~ ERROR borrow of layout constrained field is unsafe
5
-
| ^^^^ borrow of layout constrained field
4
+
LL | let y = &x.0; //~ ERROR borrow of layout constrained field with interior mutability
5
+
| ^^^^ borrow of layout constrained field with interior mutability
6
6
|
7
-
= note: references to fields of layout constrained fields lose the constraints
7
+
= note: references to fields of layout constrained fields lose the constraints. Coupled with interior mutability, the field can be changed to invalid values
0 commit comments