summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crashes/ice-4121.rs
blob: e1a142fdcb67f00053d5700ec5193bf89fc7c6a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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() {}