mirror of
https://github.com/nushell/nushell.git
synced 2025-08-15 09:23:12 +02:00
Require let to be a statement (#594)
This commit is contained in:
@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user