auto merge of #16444 : steveklabnik/rust/fix_boxes_in_manual, r=brson

Fixes #16439
This commit is contained in:
bors 2014-08-14 11:16:19 +00:00
commit 320c35ee34

View File

@ -1538,7 +1538,7 @@ Likewise, supertrait methods may also be called on trait objects.
# impl Shape for int { fn area(&self) -> f64 { 0.0 } }
# impl Circle for int { fn radius(&self) -> f64 { 0.0 } }
# let mycircle = 0;
let mycircle: Circle = ~mycircle as ~Circle;
let mycircle = box mycircle as Box<Circle>;
let nonsense = mycircle.radius() * mycircle.area();
~~~~