Fix doc example to accommodate overloaded-box.
This commit is contained in:
parent
0d5bcb14ad
commit
cb1b0dd589
@ -709,7 +709,7 @@ fn main() {
|
||||
one_hundred: 100,
|
||||
});
|
||||
|
||||
let y = box foo(x);
|
||||
let y: Box<BigStruct> = box foo(x);
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user