mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 01:10:36 +00:00
10 lines
110 B
Rust
10 lines
110 B
Rust
//@ run-pass
|
|
|
|
fn foo(x: &mut Box<u8>) {
|
|
*x = Box::new(5);
|
|
}
|
|
|
|
pub fn main() {
|
|
foo(&mut Box::new(4));
|
|
}
|