Improve wording and docs for qualified path recovery

This commit is contained in:
Rob Pilling 2020-02-01 19:21:54 +00:00
parent 45fb7232ab
commit 991d2ee282
4 changed files with 14 additions and 7 deletions

View file

@ -15,5 +15,5 @@ fn template<T>() -> i64 {
fn main() {
template::<<Impl as T>::Ty>();
//~^ ERROR found single colon where type path was expected
//~^ ERROR found single colon before projection in qualified path
}

View file

@ -15,5 +15,5 @@ fn template<T>() -> i64 {
fn main() {
template::<<Impl as T>:Ty>();
//~^ ERROR found single colon where type path was expected
//~^ ERROR found single colon before projection in qualified path
}

View file

@ -1,4 +1,4 @@
error: found single colon where type path was expected
error: found single colon before projection in qualified path
--> $DIR/qualified-path-in-turbofish.rs:17:27
|
LL | template::<<Impl as T>:Ty>();