]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/type-ascription-instead-of-method.stderr
Rollup merge of #107477 - GuillaumeGomez:css-var, r=notriddle
[rust.git] / tests / ui / suggestions / type-ascription-instead-of-method.stderr
1 error: expected type, found `"foo"`
2   --> $DIR/type-ascription-instead-of-method.rs:3:21
3    |
4 LL |     let _ = Box:new("foo".to_string());
5    |                -    ^^^^^ expected type
6    |                |
7    |                help: maybe write a path separator here: `::`
8    |
9    = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
10
11 error: aborting due to previous error
12