]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/type-ascription-instead-of-method.stderr
Auto merge of #65598 - Centril:rollup-vc6ht2c, r=Centril
[rust.git] / src / test / ui / suggestions / type-ascription-instead-of-method.stderr
1 error: expected type, found `"foo"`
2   --> $DIR/type-ascription-instead-of-method.rs:2:13
3    |
4 LL |     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    = note: for more information, see https://github.com/rust-lang/rust/issues/23416
11
12 error: aborting due to previous error
13