]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/type-ascription-instead-of-method.stderr
Rollup merge of #59432 - phansch:compiletest_docs, r=alexcrichton
[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    |        -    ^^^^^ expecting a type here because of type ascription
6    |        |
7    |        help: maybe you meant to write a path separator here: `::`
8
9 error: aborting due to previous error
10