anp / moxie

lightweight platform-agnostic tools for declarative UI
https://moxie.rs
Apache License 2.0
828 stars 27 forks source link

mox parse failure for `<div/>` is cryptic #183

Closed anp closed 3 years ago

anp commented 4 years ago
error: input ends before expected
  --> dom\examples\todo\src\lib.rs:28:5     
   |
28 | /     mox! {
29 | |         <div>
30 | |             <section class="todoapp">
31 | |                 { input_header() }   
...  |

for this code

    mox! {
        <div>
            <section class="todoapp">
                { input_header() }
                { main_section() }
            </section>
        <div/> // <-- issue here
    }