rust-clippy/tests/ui/crashes/ice-4121.rs

14 lines
198 B
Rust
Raw Normal View History

2019-07-01 13:53:48 +00:00
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() {}