Improve wording and docs for qualified path recovery
This commit is contained in:
parent
45fb7232ab
commit
991d2ee282
4 changed files with 14 additions and 7 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue