1 error: expected type, found `"foo"`
2 --> $DIR/type-ascription-instead-of-method.rs:3:21
4 LL | let _ = Box:new("foo".to_string());
5 | - ^^^^^ expected type
7 | help: maybe write a path separator here: `::`
9 = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
11 error: aborting due to previous error