]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/crashes/ice-4121.rs
Rollup merge of #78769 - est31:remove_lifetimes, r=KodrAus
[rust.git] / src / tools / clippy / 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() {}