diff options
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.rs | 4 |
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` } } |
