mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
fixed #1384
This commit is contained in:
parent
0129790a8f
commit
de930237ff
4 changed files with 90 additions and 7 deletions
|
@ -181,6 +181,17 @@ pub(crate) fn expr_block_contents(p: &mut Parser) {
|
|||
// fn foo(){
|
||||
// ;;;some_expr();;;;{;;;};;;;Ok(())
|
||||
// }
|
||||
|
||||
// test nocontentexpr_after_item
|
||||
// fn simple_function() {
|
||||
// enum LocalEnum {
|
||||
// One,
|
||||
// Two,
|
||||
// };
|
||||
// fn f() {};
|
||||
// struct S {};
|
||||
// }
|
||||
|
||||
if p.current() == T![;] {
|
||||
p.bump();
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue