about summary refs log tree commit diff
path: root/tests/ui/numbers-arithmetic/unary-negation-unsigned-integer-error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/numbers-arithmetic/unary-negation-unsigned-integer-error.rs')
-rw-r--r--tests/ui/numbers-arithmetic/unary-negation-unsigned-integer-error.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/numbers-arithmetic/unary-negation-unsigned-integer-error.rs b/tests/ui/numbers-arithmetic/unary-negation-unsigned-integer-error.rs
index 943c7f79742..4325c8b111b 100644
--- a/tests/ui/numbers-arithmetic/unary-negation-unsigned-integer-error.rs
+++ b/tests/ui/numbers-arithmetic/unary-negation-unsigned-integer-error.rs
@@ -1,3 +1,5 @@
+//! This test ensures that the unary negation operator (`-`) cannot be applied to unsigned ints
+
 fn main() {
     let x = -1 as usize; //~ ERROR: cannot apply unary operator `-`
     let x = (-1) as usize; //~ ERROR: cannot apply unary operator `-`