about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/while_float.stderr
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-05-21 23:55:52 +0000
committerbors <bors@rust-lang.org>2024-05-21 23:55:52 +0000
commit72d8d8d9f91122c59601b52c7f495f4e4dc50e29 (patch)
tree632a19389fea8f6c81ed3d256b98ac42661ca3c6 /src/tools/clippy/tests/ui/while_float.stderr
parent791adf759cc065316f054961875052d5bc03e16c (diff)
parentbb1481a72af660fc2cee968e83e8e5808b4826ce (diff)
Auto merge of #125202 - flip1995:clippy-subtree-update, r=Manishearth
Clippy subtree update

r? `@Manishearth`
Diffstat (limited to 'src/tools/clippy/tests/ui/while_float.stderr')
-rw-r--r--src/tools/clippy/tests/ui/while_float.stderr20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/while_float.stderr b/src/tools/clippy/tests/ui/while_float.stderr
new file mode 100644
index 00000000000..b8e934b97c6
--- /dev/null
+++ b/src/tools/clippy/tests/ui/while_float.stderr
@@ -0,0 +1,20 @@
+error: while condition comparing floats
+  --> tests/ui/while_float.rs:4:11
+   |
+LL |     while x < 42.0_f32 {
+   |           ^^^^^^^^^^^^
+   |
+note: the lint level is defined here
+  --> tests/ui/while_float.rs:1:8
+   |
+LL | #[deny(clippy::while_float)]
+   |        ^^^^^^^^^^^^^^^^^^^
+
+error: while condition comparing floats
+  --> tests/ui/while_float.rs:7:11
+   |
+LL |     while x < 42.0 {
+   |           ^^^^^^^^
+
+error: aborting due to 2 previous errors
+