Require let to be a statement (#594)

This commit is contained in:
JT
2021-12-27 14:04:22 +11:00
committed by GitHub
parent de30236f38
commit 3706bef0a1
6 changed files with 58 additions and 31 deletions

View File

@ -113,3 +113,8 @@ fn long_flag() -> TestResult {
"100",
)
}
#[test]
fn let_not_statement() -> TestResult {
fail_test(r#"let x = "hello" | str length"#, "can't")
}