]> git.lizzy.rs Git - rust.git/blob - tests/ui/cancel-clean-via-immediate-rvalue-ref.rs
Auto merge of #107529 - Zoxc:inline-tweak-profile, r=cjgillot
[rust.git] / tests / ui / cancel-clean-via-immediate-rvalue-ref.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3
4 fn foo(x: &mut Box<u8>) {
5     *x = Box::new(5);
6 }
7
8 pub fn main() {
9     foo(&mut Box::new(4));
10 }