snapshots_test__diagnostics_autofocus_misuse.snap
raw
---
source: crates/guiduck-component-core/tests/snapshots_test.rs
expression: "compile_or_render_errors(source, \"broken.gdc\")"
---
error: `:autofocus` takes a literal `true` or `false`
--> broken.gdc:5:28
|
5 | (text-input :autofocus on)
| ^^
error: `:autofocus` appears more than once; only one widget can take initial focus
--> broken.gdc:7:28
|
7 | (text-input :autofocus true)))
| ^^^^