rust/src/test/rustdoc/const-evalutation-ice.rs

11 lines
179 B
Rust
Raw Normal View History

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>
}
2018-09-04 16:09:30 +02:00
pub const N: usize = 0 - (mem::size_of::<S>() != 4) as usize;