-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
A-parserparser issuesparser issuesC-bugCategory: bugCategory: bugS-blockedStatus: marked as blocked ❌ on something else such as an RFC or other implementation work.Status: marked as blocked ❌ on something else such as an RFC or other implementation work.
Description
This test should pass.
#[test]
fn test_enum_in_nested_method_in_lambda() {
check(
r#"
enum A {
A,
B
}
fn bar(_: A) { }
fn main() {
let foo = Foo;
std::thread::spawn(move || { bar(A:$0) } );
}
"#,
expect![[r#"
fn bar(_: A)
(<_: A>)
"#]],
);
}
Related ast is as below:
[email protected]
[email protected] "{"
[email protected] "\n "
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected] "bar"
[email protected]
[email protected] "("
[email protected]
[email protected]
[email protected]
[email protected]
[email protected] "A"
[email protected]
[email protected]
[email protected] ":" <-------- here
[email protected]
[email protected] ")"
[email protected] "\n "
[email protected] "}"
Metadata
Metadata
Assignees
Labels
A-parserparser issuesparser issuesC-bugCategory: bugCategory: bugS-blockedStatus: marked as blocked ❌ on something else such as an RFC or other implementation work.Status: marked as blocked ❌ on something else such as an RFC or other implementation work.