Skip to content

Commit 00fce4a

Browse files
committed
Fix tests
1 parent 4b35388 commit 00fce4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/expressions/block-expr.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ loop {
122122
Auto trait inference for `async` blocks follow the same [rules as closures] except that [temporary values that are in scope][temporary-scopes] at an `await` expression are also considered. For example, consider the following block:
123123

124124
```rust
125-
#fn bar() -> i32 { 42 }
126-
#async fn foo() {}
125+
# fn bar() -> i32 { 42 }
126+
# async fn foo() {}
127127
async {
128128
match bar() {
129129
_ => foo().await,
130130
}
131131
}
132-
#;
132+
# ;
133133
```
134134

135135
Here the result of `bar()` is in scope during the await of `foo()`, so the result of `bar()` will impact the inferred auto traits.

0 commit comments

Comments
 (0)