mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 05:26:47 +00:00
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:
commit
323fb7113b
16
src/test/ui/limits/issue-75158-64.rs
Normal file
16
src/test/ui/limits/issue-75158-64.rs
Normal 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();
|
||||
}
|
4
src/test/ui/limits/issue-75158-64.stderr
Normal file
4
src/test/ui/limits/issue-75158-64.stderr
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user