Sign in
fuchsia
/
third_party
/
rust
/
7e8a8c9cb152530c9833a389e7a7d79c7db693cc
/
.
/
tests
/
rustdoc-ui
/
const-evalutation-ice.rs
blob: 0dd3bcaa2895d7ce4a25e8e27dd9b66d4217c7e3 [
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 evaluation of constant value failed