diff options
| author | varkor <github@varkor.com> | 2020-10-28 00:41:40 +0000 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2020-10-28 10:47:27 +0000 |
| commit | 6c73adf3240261315446582cb57de079bf2b87f9 (patch) | |
| tree | 0af836fbee45e0105aac6be7313d9a8f85f41b75 /src/test/ui/parser | |
| parent | ac1454001cee3f344a1104fd0cf4012b93443b0b (diff) | |
| download | rust-6c73adf3240261315446582cb57de079bf2b87f9.tar.gz rust-6c73adf3240261315446582cb57de079bf2b87f9.zip | |
Adjust turbofish help message for const generics
Diffstat (limited to 'src/test/ui/parser')
| -rw-r--r-- | src/test/ui/parser/require-parens-for-chained-comparison.rs | 6 | ||||
| -rw-r--r-- | src/test/ui/parser/require-parens-for-chained-comparison.stderr | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/test/ui/parser/require-parens-for-chained-comparison.rs b/src/test/ui/parser/require-parens-for-chained-comparison.rs index 4e97904ed6d..e3ce6cd39bc 100644 --- a/src/test/ui/parser/require-parens-for-chained-comparison.rs +++ b/src/test/ui/parser/require-parens-for-chained-comparison.rs @@ -12,15 +12,15 @@ fn main() { f<X>(); //~^ ERROR comparison operators cannot be chained - //~| HELP use `::<...>` instead of `<...>` to specify type arguments + //~| HELP use `::<...>` instead of `<...>` to specify type or const arguments f<Result<Option<X>, Option<Option<X>>>(1, 2); //~^ ERROR comparison operators cannot be chained - //~| HELP use `::<...>` instead of `<...>` to specify type arguments + //~| HELP use `::<...>` instead of `<...>` to specify type or const arguments use std::convert::identity; let _ = identity<u8>; //~^ ERROR comparison operators cannot be chained - //~| HELP use `::<...>` instead of `<...>` to specify type arguments + //~| HELP use `::<...>` instead of `<...>` to specify type or const arguments //~| HELP or use `(...)` if you meant to specify fn arguments } diff --git a/src/test/ui/parser/require-parens-for-chained-comparison.stderr b/src/test/ui/parser/require-parens-for-chained-comparison.stderr index 7001aa8e8a1..afb964c17e2 100644 --- a/src/test/ui/parser/require-parens-for-chained-comparison.stderr +++ b/src/test/ui/parser/require-parens-for-chained-comparison.stderr @@ -26,7 +26,7 @@ error: comparison operators cannot be chained LL | f<X>(); | ^ ^ | -help: use `::<...>` instead of `<...>` to specify type arguments +help: use `::<...>` instead of `<...>` to specify type or const arguments | LL | f::<X>(); | ^^ @@ -37,7 +37,7 @@ error: comparison operators cannot be chained LL | f<Result<Option<X>, Option<Option<X>>>(1, 2); | ^ ^ | -help: use `::<...>` instead of `<...>` to specify type arguments +help: use `::<...>` instead of `<...>` to specify type or const arguments | LL | f::<Result<Option<X>, Option<Option<X>>>(1, 2); | ^^ @@ -48,7 +48,7 @@ error: comparison operators cannot be chained LL | let _ = identity<u8>; | ^ ^ | - = help: use `::<...>` instead of `<...>` to specify type arguments + = help: use `::<...>` instead of `<...>` to specify type or const arguments = help: or use `(...)` if you meant to specify fn arguments error: aborting due to 5 previous errors |
