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