Test for melted ICE #4121

This commit is contained in:
flip1995 2019-07-01 15:53:48 +02:00
parent 47ada9ae07
commit fb56e90e12
No known key found for this signature in database
GPG key ID: 01C836B640FFDFB1

13
tests/ui/ice-4121.rs Normal file
View file

@ -0,0 +1,13 @@
use std::mem;
pub struct Foo<A, B>(A, B);
impl<A, B> Foo<A, B> {
const HOST_SIZE: usize = mem::size_of::<B>();
pub fn crash() -> bool {
Self::HOST_SIZE == 0
}
}
fn main() {}