]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/type-ascription-instead-of-path-2.stderr
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / ui / suggestions / type-ascription-instead-of-path-2.stderr
1 error: expected `::`, found `(`
2   --> $DIR/type-ascription-instead-of-path-2.rs:3:63
3    |
4 LL |     let _ = vec![Ok(2)].into_iter().collect:<Result<Vec<_>,_>>()?;
5    |                                            -                  ^ expected `::`
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