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")
 }