about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser/expr.rs
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2019-10-18 18:15:16 +0900
committerYuki Okushi <huyuumi.dev@gmail.com>2019-10-18 18:15:16 +0900
commit9617014aa6c1d95bf4f59fc333b10f6b33dbe1ee (patch)
tree0fe680d87e3f320a8bd6ed774000c4b50b1cd6ab /src/libsyntax/parse/parser/expr.rs
parentda59656b3b2e2469d9bdae3c9c9e8cbacdd5e6f6 (diff)
downloadrust-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.rs2
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
                     )