diff options
Diffstat (limited to 'tests/ui/block-result/block-must-not-have-result-do.rs')
-rw-r--r-- | tests/ui/block-result/block-must-not-have-result-do.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/block-result/block-must-not-have-result-do.rs b/tests/ui/block-result/block-must-not-have-result-do.rs new file mode 100644 index 000000000..4fdb69778 --- /dev/null +++ b/tests/ui/block-result/block-must-not-have-result-do.rs @@ -0,0 +1,5 @@ +fn main() { + loop { + true //~ ERROR mismatched types + } +} |