-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VariantSizeDifferences: bail on SizeOverflow
- Loading branch information
Showing
3 changed files
with
19 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,9 @@ | ||
// build-fail | ||
|
||
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:4:12 | ||
| | ||
LL | Bug::V([0; !0]); | ||
| ^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|