mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
fix: box_syntax(#1412)
Change-Id: I6e20e0163fa545de37226c1561b3b7103615626c
This commit is contained in:
parent
1541b2d689
commit
5999733ca6
2 changed files with 8 additions and 0 deletions
|
@ -583,3 +583,8 @@ pub(crate) fn named_field_list(p: &mut Parser) {
|
|||
p.expect(T!['}']);
|
||||
m.complete(p, NAMED_FIELD_LIST);
|
||||
}
|
||||
|
||||
// test box_syntax
|
||||
// fn foo() {
|
||||
// let x = box 1i32;
|
||||
// }
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
fn foo() {
|
||||
let x = box 1i32;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue