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
9f4612a29e
rust
/
tests
/
fail
/
validity
/
invalid_bool.rs
4 lines
104 B
Rust
Raw
Normal View
History
Unescape
Escape
don't use `#[miri_run]` anymore, but execute the `main` function
2016-06-13 07:27:05 -05:00
fn
main
(
)
{
require level and colon in `//~` style comments
2022-07-11 06:44:55 -05:00
let
_b
=
unsafe
{
std
::
mem
::
transmute
::
<
u8
,
bool
>
(
2
)
}
;
//~ ERROR: expected a boolean
don't use `#[miri_run]` anymore, but execute the `main` function
2016-06-13 07:27:05 -05:00
}
Reference in New Issue
Copy Permalink