2018-09-19 09:30:25 +02:00
|
|
|
// Just check we don't get an ICE for `N`.
|
2018-01-29 23:04:43 +01:00
|
|
|
|
|
|
|
use std::cell::Cell;
|
|
|
|
use std::mem;
|
|
|
|
|
|
|
|
pub struct S {
|
|
|
|
s: Cell<usize>
|
|
|
|
}
|
|
|
|
|
2022-12-07 16:08:58 +01:00
|
|
|
pub const N: usize = 0 - (mem::size_of::<S>() != 400) as usize;
|
|
|
|
//~^ ERROR evaluation of constant value failed
|