2014-09-09 17:45:51 -04:00
|
|
|
fn main() {
|
2021-08-25 02:39:40 +02:00
|
|
|
|
2014-09-09 17:45:51 -04:00
|
|
|
let f;
|
|
|
|
let g;
|
2021-08-25 02:39:40 +02:00
|
|
|
|
2014-09-09 17:45:51 -04:00
|
|
|
g = f;
|
2021-08-25 02:39:40 +02:00
|
|
|
f = Box::new(g);
|
2024-02-22 18:18:33 +01:00
|
|
|
//~^ ERROR overflow assigning `Box<_>` to `_`
|
2014-09-09 17:45:51 -04:00
|
|
|
}
|