about summary refs log tree commit diff
path: root/tests/ui/while_float.rs
diff options
context:
space:
mode:
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;