Closed
Description
In the following code, I forgot a semicolon:
fn main() {
Box:new("foo".to_string())
}
This generates the following error:
|
2 | Box:new("foo".to_string())
| ^^^^^ expecting a type here because of type ascription
This may get confusing when nesting multiple calls in the argument of Box::new
.
ping @GuillaumeGomez