mirror of
https://github.com/nushell/nushell.git
synced 2024-12-26 17:09:06 +01:00
16 lines
274 B
Rust
16 lines
274 B
Rust
|
use nu_test_support::{nu, pipeline};
|
||
|
|
||
|
#[test]
|
||
|
fn let_parse_error() {
|
||
|
let actual = nu!(
|
||
|
cwd: ".", pipeline(
|
||
|
r#"
|
||
|
let in = 3
|
||
|
"#
|
||
|
));
|
||
|
|
||
|
assert!(actual
|
||
|
.err
|
||
|
.contains("'in' is the name of a builtin Nushell variable"));
|
||
|
}
|