File tree 2 files changed +2
-2
lines changed
compiler/rustc_parse/src/parser
src/test/ui/expr/malformed_closure
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -894,7 +894,7 @@ impl<'a> Parser<'a> {
894
894
let mut first_note = MultiSpan :: from ( vec ! [ initial_semicolon] ) ;
895
895
first_note. push_span_label (
896
896
initial_semicolon,
897
- "this `;` turns the preceding expression into a statement" . to_string ( ) ,
897
+ "this `;` turns the preceding closure into a statement" . to_string ( ) ,
898
898
) ;
899
899
first_note. push_span_label (
900
900
closure_spans. body ,
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ note: statement found outside of a block
11
11
--> $DIR/missing_braces_around_block.rs:16:26
12
12
|
13
13
LL | println!("{}", a);
14
- | -----------------^ this `;` turns the preceding expression into a statement
14
+ | -----------------^ this `;` turns the preceding closure into a statement
15
15
| |
16
16
| this expression is a statement because of the trailing semicolon
17
17
note: the closure body may be incorrectly delimited
You can’t perform that action at this time.
0 commit comments