mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
14 lines
198 B
Rust
14 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() {}
|