summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/const-evalutation-ice.rs
blob: 68c7f9c5686ff359f84dcf82655a781c8d14e44c (plain)
1
2
3
4
5
6
7
8
9
10
// Just check we don't get an ICE for `N`.

use std::cell::Cell;
use std::mem;

pub struct S {
    s: Cell<usize>
}

pub const N: usize = 0 - (mem::size_of::<S>() != 4) as usize;