Sign in
fuchsia
/
third_party
/
rust
/
cad2d5840b1be3163855223b5c784852554ebfe0
/
.
/
src
/
test
/
ui
/
init-unsafe.rs
blob: 3d65cfc2340926f6b7e07a08c4d23a6b24b15245 [
file
] [
log
] [
blame
]
#![
allow
(
deprecated
)]
#![
feature
(
core_intrinsics
)]
use
std
::
intrinsics
::{
init
};
// Test that the `init` intrinsic is really unsafe
pub
fn
main
()
{
let
stuff
=
init
::<
isize
>();
//~ ERROR call to unsafe function is unsafe
}