Sign in
fuchsia
/
third_party
/
rust
/
eda6dc928323fcd0ac1b51cea1aa79ab17e8519d
/
.
/
tests
/
ui
/
lint
/
lint-strict-provenance-fuzzy-casts.rs
blob: 187209d4e207ed41f31c5d992e65333fb4317bcb [
file
] [
log
] [
blame
]
#![
feature
(
strict_provenance_lints
)]
#![
deny
(
fuzzy_provenance_casts
)]
fn
main
()
{
let
dangling
=
16
_usize
as
*
const
u8
;
//~^ ERROR strict provenance disallows casting integer `usize` to pointer `*const u8`
}