Jonathan Kelley пре 1 година
родитељ
комит
fe2c17f792
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      examples/error_handle.rs

+ 1 - 0
examples/error_handle.rs

@@ -49,6 +49,7 @@ fn DemoC(x: i32) -> Element {
     }
 }
 
+#[component]
 fn ComponentPanic() -> Element {
     panic!("This component panics")
 }