more --blessing + test error annotations fixes

This commit is contained in:
Artem Varaksa
2019-08-21 15:13:13 +03:00
parent dd7082e3d2
commit 600a64bdb5
6 changed files with 14 additions and 14 deletions

View File

@@ -30,14 +30,14 @@ async fn return_targets_async_block_not_async_fn() -> u8 {
fn no_break_in_async_block() {
async {
break 0u8; //~ ERROR `break` inside of an async block
break 0u8; //~ ERROR `break` inside of an `async` block
};
}
fn no_break_in_async_block_even_with_outer_loop() {
loop {
async {
break 0u8; //~ ERROR `break` inside of an async block
break 0u8; //~ ERROR `break` inside of an `async` block
};
}
}