assists/inline: add negative test for patfield

This commit is contained in:
Léana 江 2025-08-09 00:36:33 +02:00
parent 5cf51e1433
commit 4bef45187d
No known key found for this signature in database
GPG key ID: 4E887A4CA9714ADA

View file

@ -162,4 +162,21 @@ mod tests {
);
check_no("let $0foo = 1; in { inherit foo; }");
}
#[test]
fn no_patfield() {
check_no(
r#"
{
outputs = {
self,
nixpkgs,
$0flake-utils,
}: {
inherit flake-utils;
};
}
"#,
);
}
}