proof.rs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. use bumpalo::Bump;
  2. use dioxus_html_2::html;
  3. mod dioxus {
  4. pub use bumpalo;
  5. pub mod builder {
  6. use bumpalo::Bump;
  7. }
  8. }
  9. fn main() {
  10. /*
  11. Th below code is not meant to compile, but it is meant to expand properly
  12. */
  13. // let l = html! {
  14. // <div>
  15. // <div>
  16. // <h1>"asdl"</h1>
  17. // <h1>"asdl"</h1>
  18. // <h1>"asdl"</h1>
  19. // <h1>"asdl"</h1>
  20. // </div>
  21. // </div>
  22. // };
  23. // let l = move |bump| {
  24. // dioxus::builder::div(bump)
  25. // .children([dioxus::builder::div(bump)
  26. // .children([
  27. // dioxus::builder::h1(bump)
  28. // .children([dioxus::builder::text("asdl")])
  29. // .finish(),
  30. // dioxus::builder::h1(bump)
  31. // .children([dioxus::builder::text("asdl")])
  32. // .finish(),
  33. // dioxus::builder::h1(bump)
  34. // .children([dioxus::builder::text("asdl")])
  35. // .finish(),
  36. // dioxus::builder::h1(bump)
  37. // .children([dioxus::builder::text("asdl")])
  38. // .finish(),
  39. // ])
  40. // .finish()])
  41. // .finish()
  42. // };
  43. }