about summary refs log tree commit diff
path: root/tests/ui/while_float.rs
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2025-02-27 21:40:02 +0100
committerPhilipp Krones <hello@philkrones.com>2025-02-27 21:51:42 +0100
commit02e812af4d936a0984802bb76bb3e423e2fb94a5 (patch)
tree196fe8bde7074c1a5fa2b0af4a74892c51c8188c /tests/ui/while_float.rs
parent17bda0c0febb8c51fb14a6856d365eab86fc6162 (diff)
parent15180d4eb9dcff9441a8c3ff3382804123c5b0a1 (diff)
Merge remote-tracking branch 'upstream/master' into rustup
Diffstat (limited to 'tests/ui/while_float.rs')
-rw-r--r--tests/ui/while_float.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/while_float.rs b/tests/ui/while_float.rs
index a3b0618948e..727b954ffcc 100644
--- a/tests/ui/while_float.rs
+++ b/tests/ui/while_float.rs
@@ -2,9 +2,11 @@
 fn main() {
     let mut x = 0.0_f32;
     while x < 42.0_f32 {
+        //~^ while_float
         x += 0.5;
     }
     while x < 42.0 {
+        //~^ while_float
         x += 1.0;
     }
     let mut x = 0;