blob: 970b220b7371220701bf39a0fc71e9d3975eded7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
error: expected `::`, found `(`
--> $DIR/type-ascription-instead-of-path-2.rs:3:63
|
LL | let _ = vec![Ok(2)].into_iter().collect:<Result<Vec<_>,_>>()?;
| - ^ expected `::`
| |
| help: maybe write a path separator here: `::`
|
= note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
error: aborting due to previous error
|