about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/crashes/ice-4121.rs
blob: a1192b229ecd03d84a1b21ad3a0ce6810557e21a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ check-pass

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