about summary refs log tree commit diff
path: root/tests/ui/numbers-arithmetic/unary-negation-unsigned-integer-error.rs
diff options
context:
space:
mode:
authorKivooeo <Kivooeo123@gmail.com>2025-07-01 23:37:49 +0500
committerKivooeo <Kivooeo123@gmail.com>2025-07-10 18:50:35 +0500
commit259512e3b6a920b1e1eb6034fbc738e7b9815337 (patch)
treec4c6b3982318b82036fd4d7d2b66885eb5ef814b /tests/ui/numbers-arithmetic/unary-negation-unsigned-integer-error.rs
parent1fb5e0149fb85af0e49fa40329cbc352b4cba861 (diff)
downloadrust-259512e3b6a920b1e1eb6034fbc738e7b9815337.tar.gz
rust-259512e3b6a920b1e1eb6034fbc738e7b9815337.zip
cleaned up some tests
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 `-`