summaryrefslogtreecommitdiff
path: root/tests/ui/suggestions/type-ascription-instead-of-path-2.stderr
blob: 43d00591e74c0be6aa1538ccc4825658151c1b91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error: expected one of `(`, `.`, `::`, `;`, `?`, `else`, or an operator, found `:`
  --> $DIR/type-ascription-instead-of-path-2.rs:3:44
   |
LL |     let _ = vec![Ok(2)].into_iter().collect:<Result<Vec<_>,_>>()?;
   |                                            ^ expected one of 7 possible tokens
   |
   = note: type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728>
help: maybe write a path separator here
   |
LL |     let _ = vec![Ok(2)].into_iter().collect::<Result<Vec<_>,_>>()?;
   |                                            ~~

error: aborting due to previous error