summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/type-ascription-instead-of-method.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/type-ascription-instead-of-method.stderr')
-rw-r--r--tests/ui/suggestions/type-ascription-instead-of-method.stderr10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/ui/suggestions/type-ascription-instead-of-method.stderr b/tests/ui/suggestions/type-ascription-instead-of-method.stderr
index 83bc33f41..b3799101c 100644
--- a/tests/ui/suggestions/type-ascription-instead-of-method.stderr
+++ b/tests/ui/suggestions/type-ascription-instead-of-method.stderr
@@ -1,12 +1,10 @@
-error: expected type, found `"foo"`
- --> $DIR/type-ascription-instead-of-method.rs:3:21
+error: path separator must be a double colon
+ --> $DIR/type-ascription-instead-of-method.rs:3:16
|
LL | let _ = Box:new("foo".to_string());
- | - ^^^^^ expected type
- | |
- | help: maybe write a path separator here: `::`
+ | ^ help: use a double colon instead: `::`
|
- = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
+ = note: if you meant to annotate an expression with a type, the type ascription syntax has been removed, see issue #101728 <https://github.com/rust-lang/rust/issues/101728>
error: aborting due to previous error