This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
1
Packages
Projects
Releases
Wiki
Activity
Files
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust
/
tests
/
ui
/
consts
/
const-eval
/
zst_operand_eval.rs
6 lines
101 B
Rust
Raw
Normal View
History
Unescape
Escape
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
2024-02-16 20:02:50 +00:00
//@ check-pass
Fix const eval of ZST index operations to make the static assertion work
2018-09-10 17:46:30 +02:00
Use assertion-like static assertions
2018-09-11 13:30:26 +02: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 17:46:30 +02:00
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink