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.
Rollup merge of rust-lang#69881 - Centril:fix-69485, r=oli-obk
VariantSizeDifferences: bail on SizeOverflow Fixes rust-lang#69485. r? @oli-obk
- Loading branch information
Showing
3 changed files
with
20 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// build-fail | ||
// only-x86_64 | ||
|
||
fn main() { | ||
Bug::V([0; !0]); //~ ERROR is too big for the current | ||
} | ||
|
||
enum Bug { | ||
V([u8; !0]), | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
error: the type `[u8; 18446744073709551615]` is too big for the current architecture | ||
--> $DIR/issue-69485-var-size-diffs-too-large.rs:5:12 | ||
| | ||
LL | Bug::V([0; !0]); | ||
| ^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|