Skip to content

Commit fb56e90

Browse files
committed
Test for melted ICE rust-lang#4121
1 parent 47ada9a commit fb56e90

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/ui/ice-4121.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
use std::mem;
2+
3+
pub struct Foo<A, B>(A, B);
4+
5+
impl<A, B> Foo<A, B> {
6+
const HOST_SIZE: usize = mem::size_of::<B>();
7+
8+
pub fn crash() -> bool {
9+
Self::HOST_SIZE == 0
10+
}
11+
}
12+
13+
fn main() {}

0 commit comments

Comments
 (0)