snapshots_test__diagnostics_key_misuse.snap raw

---
source: crates/guiduck-component-core/tests/snapshots_test.rs
expression: "compile_nested_or_render_errors(source, \"broken.gdc\",\n&[(\"Child\", r#\"(component Child (container (text :text \"x\")))\"#)],)"
---
error: `:key "left"` is used by another `Child` instance
  --> broken.gdc:6:17
  |
6 |     (Child :key "left")
  |                 ^^^^^^

error: `:key` must be a non-empty string not starting with `#` (reserved for occurrence indices)
  --> broken.gdc:7:17
  |
7 |     (Child :key "#0")
  |                 ^^^^

error: `:key` takes a literal string
  --> broken.gdc:8:17
  |
8 |     (Child :key which)))
  |                 ^^^^^