Auto merge of #81462 - osa1:issue75158, r=Mark-Simulacrum

Add test for #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 #75158
This commit is contained in:
bors 2021-02-07 05:22:14 +00:00
commit 323fb7113b
24 changed files with 20 additions and 0 deletions

View File

@ -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();
}

View File

@ -0,0 +1,4 @@
error: values of the type `[u8; 18446744073709551615]` are too big for the current architecture
error: aborting due to previous error