diff options
Diffstat (limited to 'bin/tests/snapshots/main__empty_pattern.snap')
-rw-r--r-- | bin/tests/snapshots/main__empty_pattern.snap | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bin/tests/snapshots/main__empty_pattern.snap b/bin/tests/snapshots/main__empty_pattern.snap new file mode 100644 index 0000000..3ea7ae0 --- /dev/null +++ b/bin/tests/snapshots/main__empty_pattern.snap | |||
@@ -0,0 +1,20 @@ | |||
1 | --- | ||
2 | source: bin/tests/main.rs | ||
3 | expression: "&out" | ||
4 | |||
5 | --- | ||
6 | [W10] Warning: Found empty pattern in function argument | ||
7 | ╭─[data/empty_pattern.nix:3:4] | ||
8 | │ | ||
9 | 3 │ ({ ... }: 42) | ||
10 | · ───┬─── | ||
11 | · ╰───── This pattern is empty, use _ instead | ||
12 | ───╯ | ||
13 | [W11] Warning: Found redundant pattern bind in function argument | ||
14 | ╭─[data/empty_pattern.nix:7:4] | ||
15 | │ | ||
16 | 7 │ ({ ... } @ inputs: inputs) | ||
17 | · ────────┬─────── | ||
18 | · ╰───────── This pattern bind is redundant, use inputs instead | ||
19 | ───╯ | ||
20 | |||