Skip to content

Commit b46fe85

Browse files
committed
Add test for #75158
Closes #75158
1 parent 6a388dc commit b46fe85

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/test/ui/issues/issue-75158-64.rs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//~ ERROR
2+
3+
// build-fail
4+
// ignore-32bit
5+
6+
struct S<T> {
7+
x: [T; !0],
8+
}
9+
10+
pub fn f() -> usize {
11+
std::mem::size_of::<S<u8>>()
12+
}
13+
14+
fn main() {
15+
let x = f();
16+
}
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
error: values of the type `[u8; 18446744073709551615]` are too big for the current architecture
2+
3+
error: aborting due to previous error
4+

0 commit comments

Comments
 (0)