]> git.lizzy.rs Git - rust.git/blob - tests/ui/crashes/ice-4121.rs
Auto merge of #5246 - JarredAllen:master, r=flip1995
[rust.git] / tests / ui / crashes / ice-4121.rs
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() {}