fix: use annotation method from rust/58052 to fix closure lifetimes
This commit is contained in:
1 parent
9ee2bfb010
commit
27d891934a
15 files changed
+333
-180
No files matched your search
@@ -14,23 +14,23 @@ mod test_logging;
|
||||
#[test]
|
||||
fn please_work() {
|
||||
static App: FC<()> = |(cx, props)| {
|
||||
rsx! {
|
||||
cx.render(rsx! {
|
||||
div {
|
||||
hidden: "true"
|
||||
"hello"
|
||||
div { "hello" }
|
||||
Child {}
|
||||
Child {}
|
||||
Child {}
|
||||
// Child {}
|
||||
// Child {}
|
||||
// Child {}
|
||||
}
|
||||
div { "hello" }
|
||||
}
|
||||
// div { "hello" }
|
||||
})
|
||||
};
|
||||
|
||||
static Child: FC<()> = |(cx, props)| {
|
||||
rsx! {
|
||||
cx.render(rsx! {
|
||||
div { "child" }
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
let mut dom = VirtualDom::new(App);
|
||||
|
||||
Reference in new issue
Block a user