nushell/crates/nu-parser/tests
Solomon Victorino f844a3dbd8 error when a closure is used as def body
# User-Facing Changes

`def` now errors instead of silently ignoring closure blocks:

```nushell
> def foo [] {|bar| }
Error: nu::parser::parse_mismatch

  × Parse mismatch during operation.
   ╭─[entry #1:1:12]
 1 │ def foo [] {|bar| }
   ·            ────┬───
   ·                ╰── expected definition body { ... }
   ╰────
```
2024-12-10 11:16:32 -07:00
..
test_lex.rs udpate rust toolchain to rust 1.81.0 (#14473) 2024-11-29 21:46:58 +01:00
test_parser.rs error when a closure is used as def body 2024-12-10 11:16:32 -07:00
test_parser_unicode_escapes.rs IO and redirection overhaul (#11934) 2024-03-14 15:51:55 -05:00