Created
January 9, 2022 17:33
-
-
Save autarch/948b6556979532cea312368fb2754edd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0495]: cannot infer an appropriate lifetime for lifetime parameter `'a` due to conflicting requirements | |
--> web-frontend/src/artists.rs:6:9 | |
| | |
6 | &cx, | |
| ^^^ | |
| | |
note: first, the lifetime cannot outlive the anonymous lifetime defined here... | |
--> web-frontend/src/artists.rs:4:27 | |
| | |
4 | pub(crate) fn Artists(cx: Scope) -> Element { | |
| ^^^^^ | |
note: ...so that the types are compatible | |
--> web-frontend/src/artists.rs:6:9 | |
| | |
6 | &cx, | |
| ^^^ | |
= note: expected `<dioxus::prelude::Scope<'_> as Deref>` | |
found `<dioxus::prelude::Scope<'_> as Deref>` | |
note: but, the lifetime must be valid for the anonymous lifetime #1 defined here... | |
--> web-frontend/src/artists.rs:8:9 | |
| | |
8 | / |res| match res { | |
9 | | Ok(artists) => cx.render(rsx! { | |
10 | | section { | |
11 | | div { | |
... | | |
24 | | } | |
25 | | }, | |
| |_________^ | |
note: ...so that the types are compatible | |
--> web-frontend/src/artists.rs:9:28 | |
| | |
9 | Ok(artists) => cx.render(rsx! { | |
| ____________________________^ | |
10 | | section { | |
11 | | div { | |
12 | | class: "flex flex-row flex-wrap justify-center", | |
... | | |
15 | | }, | |
16 | | }), | |
| |______________^ | |
= note: expected `std::option::Option<dioxus::prelude::VNode<'_>>` | |
found `std::option::Option<dioxus::prelude::VNode<'_>>` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment