trailing-comma-0.rs 249 B

12345678910111213
  1. // Given an `rsx!` invocation with a missing trailing comma,
  2. // ensure the stderr output has an informative span.
  3. use dioxus::prelude::*;
  4. fn main() {
  5. rsx! {
  6. p {
  7. class: "foo bar"
  8. "Hello world"
  9. }
  10. };
  11. }