2019-07-26 16:54:25 -05:00
|
|
|
// run-pass
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2014-05-05 20:56:44 -05:00
|
|
|
fn foo(x: &mut Box<u8>) {
|
2021-08-24 19:39:40 -05:00
|
|
|
*x = Box::new(5);
|
2013-10-17 02:43:22 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() {
|
2021-08-24 19:39:40 -05:00
|
|
|
foo(&mut Box::new(4));
|
2013-10-17 02:43:22 -05:00
|
|
|
}
|