rust/tests/ui/unsafe/ranged_ints2_const.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
440 B
Plaintext
Raw Normal View History

2023-12-07 11:56:48 +00:00
error[E0133]: mutation of layout constrained field is unsafe and requires unsafe function or block
--> $DIR/ranged_ints2_const.rs:11:13
|
LL | let y = &mut x.0;
| ^^^^^^^^ mutation of layout constrained field
|
= note: mutating layout constrained fields cannot statically be checked for valid values
2024-08-17 12:19:34 +00:00
error: aborting due to 1 previous error
2024-08-17 12:19:34 +00:00
For more information about this error, try `rustc --explain E0133`.