2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2024-12-28 14:03:21 +00:00
rust-clippy/tests/ui/crashes/ice-4121.rs
2019-12-31 20:55:12 +09:00

13 lines
198 B
Rust

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() {}