This website requires JavaScript.
Explore
Help
Sign in
mathieu
/
granite-rust
Watch
1
Star
0
Fork
You've already forked granite-rust
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
f94942d842
granite-rust
/
src
/
test
/
ui
/
unsafe
/
issue-45087-unreachable-unsafe.rs
6 lines
105 B
Rust
Raw
Normal View
History
Unescape
Escape
run unsafety checking before dead block collection Fixes #45087.
2017-11-05 18:09:39 +02:00
fn
main
(
)
{
return
;
*
(
1
as
*
mut
u32
)
=
42
;
improve error message shown for unsafe operations: explain why undefined behavior could arise Inspired by @gnzlbg at https://github.com/rust-lang/rust/issues/46043#issuecomment-381544673
2018-07-10 10:52:05 +02:00
//~^ ERROR dereference of raw pointer is unsafe
run unsafety checking before dead block collection Fixes #45087.
2017-11-05 18:09:39 +02:00
}
Reference in a new issue
Copy permalink