summaryrefslogtreecommitdiff
path: root/tests/ui/suggestions/type-ascription-instead-of-path-2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/type-ascription-instead-of-path-2.stderr')
-rw-r--r--tests/ui/suggestions/type-ascription-instead-of-path-2.stderr14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/ui/suggestions/type-ascription-instead-of-path-2.stderr b/tests/ui/suggestions/type-ascription-instead-of-path-2.stderr
index 970b220b737..43d00591e74 100644
--- a/tests/ui/suggestions/type-ascription-instead-of-path-2.stderr
+++ b/tests/ui/suggestions/type-ascription-instead-of-path-2.stderr
@@ -1,12 +1,14 @@
-error: expected `::`, found `(`
- --> $DIR/type-ascription-instead-of-path-2.rs:3:63
+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 `::`
- | |
- | help: maybe write a path separator here: `::`
+ | ^ expected one of 7 possible tokens
|
- = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
+ = 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