-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)
Milestone
Description
Here's a simple example:
mod foo {
pub struct Foo { foo: int }
}
use foo::Foo;
struct Bar { bar: int }
fn main() {
let Foo { foo: _foo } = foo::Foo { foo: 1 };
//let foo::Foo { foo: _foo } = foo::Foo { foo: 1 };
}
This compiles fine, but if you uncomment //let foo::Foo { foo: _foo } = foo::Foo { foo: 1 }; it will error out with:
test.rs:10:17: 10:18 error: expected `;` but found `{`
test.rs:10 let foo::Foo { foo: _foo } = foo::Foo { foo: 1 };
^
Metadata
Metadata
Assignees
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)