forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
57 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,11 @@ | ||
error[E0658]: statements in constant functions are unstable (see issue #48821) | ||
--> $DIR/ranged_ints4_const.rs:10:5 | ||
| | ||
LL | x.0 = 0; //~ ERROR statements in constant functions are unstable | ||
| ^^^^^^^ | ||
| | ||
= help: add #![feature(const_let)] to the crate attributes to enable | ||
|
||
error[E0658]: statements in constant functions are unstable (see issue #48821) | ||
--> $DIR/ranged_ints4_const.rs:17:14 | ||
| | ||
LL | unsafe { x.0 = 0 }; //~ ERROR statements in constant functions are unstable | ||
| ^^^^^^^ | ||
| | ||
= help: add #![feature(const_let)] to the crate attributes to enable | ||
|
||
error[E0133]: mutation of layout constrained field is unsafe and requires unsafe function or block | ||
--> $DIR/ranged_ints4_const.rs:10:5 | ||
| | ||
LL | x.0 = 0; //~ ERROR statements in constant functions are unstable | ||
LL | x.0 = 0; | ||
| ^^^^^^^ mutation of layout constrained field | ||
| | ||
= note: mutating layout constrained fields cannot statically be checked for valid values | ||
|
||
error: aborting due to 3 previous errors | ||
error: aborting due to previous error | ||
|
||
Some errors occurred: E0133, E0658. | ||
For more information about an error, try `rustc --explain E0133`. | ||
For more information about this error, try `rustc --explain E0133`. |