
Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
9 lines
110 B
Rust
9 lines
110 B
Rust
//@ run-pass
|
|
|
|
fn foo(x: &mut Box<u8>) {
|
|
*x = Box::new(5);
|
|
}
|
|
|
|
pub fn main() {
|
|
foo(&mut Box::new(4));
|
|
}
|