File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
compiler/rustc_parse/src/parser
src/test/ui/expr/malformed_closure Expand file tree Collapse file tree 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> {
894894 let mut first_note = MultiSpan :: from ( vec ! [ initial_semicolon] ) ;
895895 first_note. push_span_label (
896896 initial_semicolon,
897- "this `;` turns the preceding expression into a statement" . to_string ( ) ,
897+ "this `;` turns the preceding closure into a statement" . to_string ( ) ,
898898 ) ;
899899 first_note. push_span_label (
900900 closure_spans. body ,
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ note: statement found outside of a block
1111 --> $DIR/missing_braces_around_block.rs:16:26
1212 |
1313LL | println!("{}", a);
14- | -----------------^ this `;` turns the preceding expression into a statement
14+ | -----------------^ this `;` turns the preceding closure into a statement
1515 | |
1616 | this expression is a statement because of the trailing semicolon
1717note: the closure body may be incorrectly delimited
You can’t perform that action at this time.
0 commit comments