about summary refs log tree commit diff
path: root/tests/ui/block-result/block-must-not-have-result-while.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/block-result/block-must-not-have-result-while.rs')
-rw-r--r--tests/ui/block-result/block-must-not-have-result-while.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ui/block-result/block-must-not-have-result-while.rs b/tests/ui/block-result/block-must-not-have-result-while.rs
index 418059bf280..ada4e1778a5 100644
--- a/tests/ui/block-result/block-must-not-have-result-while.rs
+++ b/tests/ui/block-result/block-must-not-have-result-while.rs
@@ -1,6 +1,8 @@
+//@ dont-require-annotations: NOTE
+
 fn main() {
     while true { //~ WARN denote infinite loops with
         true //~  ERROR mismatched types
-             //~| expected `()`, found `bool`
+             //~| NOTE expected `()`, found `bool`
     }
 }