This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
21bcd2ee9c
rust
/
tests
/
ui
/
consts
/
const-eval
/
zst_operand_eval.rs
6 lines
100 B
Rust
Raw
Normal View
History
Unescape
Escape
Move some const-eval `build-pass` tests to `check-pass`
2020-03-12 10:58:34 -05:00
// check-pass
Fix const eval of ZST index operations to make the static assertion work
2018-09-10 10:46:30 -05:00
Use assertion-like static assertions
2018-09-11 06:30:26 -05:00
static
ASSERT
:
(
)
=
[
(
)
]
[
!
(
std
::
mem
::
size_of
::
<
u32
>
(
)
=
=
4
)
as
usize
]
;
Fix const eval of ZST index operations to make the static assertion work
2018-09-10 10:46:30 -05:00
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink