remove unsafe

This commit is contained in:
corey 2024-01-09 13:07:20 -06:00
parent 6ef3d7c0ed
commit 19b4ea0f3a

5
rs.rs
View File

@ -2,9 +2,6 @@
pub extern "C" fn ok(x:&[i32;3])->i32
{
let mut y:Vec<i32>=vec![5;15];
unsafe
{
y[0]=x[2];
}
y[0]=x[2];
return y[0];
}