Sign in
rust
/
rust
/
refs/heads/beta
/
.
/
tests
/
rustdoc-ui
/
const-evalutation-ice.rs
blob: 72bcbeb4c516019a807f173feb18f4b13bd3d8af [
file
] [
log
] [
blame
]
// 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
>()
!=
400
)
as
usize
;
//~^ ERROR overflow