about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-11-05 10:29:54 -0800
committerEsteban Küber <esteban@kuber.com.ar>2019-11-05 10:29:54 -0800
commita8ccbf5f2fa75007ce0effe58caef4e342859a4f (patch)
treede4a7862c55287076de8397f19102ff9a8860e19 /src/test
parent3bbfc7320ba0f23541f94a84cf5281a210a546cd (diff)
downloadrust-a8ccbf5f2fa75007ce0effe58caef4e342859a4f.tar.gz
rust-a8ccbf5f2fa75007ce0effe58caef4e342859a4f.zip
Account for typo in turbofish and suggest `::`
Diffstat (limited to 'src/test')
-rw-r--r--src/test/ui/suggestions/type-ascription-instead-of-path-2.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/suggestions/type-ascription-instead-of-path-2.stderr b/src/test/ui/suggestions/type-ascription-instead-of-path-2.stderr
index 191c4f631c4..db793c84cf8 100644
--- a/src/test/ui/suggestions/type-ascription-instead-of-path-2.stderr
+++ b/src/test/ui/suggestions/type-ascription-instead-of-path-2.stderr
@@ -4,7 +4,7 @@ error: expected `::`, found `(`
 LL |     vec![Ok(2)].into_iter().collect:<Result<Vec<_>,_>>()?;
    |                                    -                  ^ expected `::`
    |                                    |
-   |                                    tried to parse a type due to this type ascription
+   |                                    help: maybe write a path separator here: `::`
    |
    = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
    = note: for more information, see https://github.com/rust-lang/rust/issues/23416