diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2019-10-18 18:15:16 +0900 |
|---|---|---|
| committer | Yuki Okushi <huyuumi.dev@gmail.com> | 2019-10-18 18:15:16 +0900 |
| commit | 9617014aa6c1d95bf4f59fc333b10f6b33dbe1ee (patch) | |
| tree | 0fe680d87e3f320a8bd6ed774000c4b50b1cd6ab /src/libsyntax/parse/parser/expr.rs | |
| parent | da59656b3b2e2469d9bdae3c9c9e8cbacdd5e6f6 (diff) | |
| download | rust-9617014aa6c1d95bf4f59fc333b10f6b33dbe1ee.tar.gz rust-9617014aa6c1d95bf4f59fc333b10f6b33dbe1ee.zip | |
Clarify diagnostics when using `~` as a unary op
Diffstat (limited to 'src/libsyntax/parse/parser/expr.rs')
| -rw-r--r-- | src/libsyntax/parse/parser/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser/expr.rs b/src/libsyntax/parse/parser/expr.rs index 273f5a5ffa3..67a530ec683 100644 --- a/src/libsyntax/parse/parser/expr.rs +++ b/src/libsyntax/parse/parser/expr.rs @@ -423,7 +423,7 @@ impl<'a> Parser<'a> { self.struct_span_err(span_of_tilde, "`~` cannot be used as a unary operator") .span_suggestion_short( span_of_tilde, - "use `!` to perform bitwise negation", + "use `!` to perform bitwise not", "!".to_owned(), Applicability::MachineApplicable ) |
