forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#81462 - osa1:issue75158, r=Mark-Simulacrum
Add test for rust-lang#75158 This also shifts some type-size related tests into a new directory, so that we keep the number of files at the root down. Closes rust-lang#75158
- Loading branch information
Showing
24 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,16 @@ | ||
//~ ERROR | ||
|
||
// build-fail | ||
// ignore-32bit | ||
|
||
struct S<T> { | ||
x: [T; !0], | ||
} | ||
|
||
pub fn f() -> usize { | ||
std::mem::size_of::<S<u8>>() | ||
} | ||
|
||
fn main() { | ||
let x = f(); | ||
} |
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,4 @@ | ||
error: values of the type `[u8; 18446744073709551615]` are too big for the current architecture | ||
|
||
error: aborting due to previous error | ||
|