-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
associated function build
is private
#1676
Comments
cargo-expand gives #[allow(dead_code)]
enum ProcMacroHack {
Nested = ("< menu :: Menu / >", 0).1,
}
::yew::virtual_dom::VNode::from({
if false {}
:: yew :: virtual_dom :: VChild :: < menu :: Menu > :: new (< < menu :: Menu as :: yew :: html :: Component > :: Properties as :: yew :: html :: Properties > :: builder () . build () , :: yew :: html :: NodeRef :: default () , None)
}) |
cargo-expand also shows impl PropertiesBuilder<PropertiesBuilderStep_build> {
#[doc(hidden)]
fn build(self) -> Properties {
Properties {}
}
}
impl ::yew::html::Properties for Properties {
type Builder = PropertiesBuilder<PropertiesBuilderStep_build>;
fn builder() -> Self::Builder {
PropertiesBuilder {
wrapped: ::std::boxed::Box::new(::std::default::Default::default()),
_marker: ::std::marker::PhantomData,
}
}
} for the properties. But it is actually not necessary to make my Should I send a PR that makes the |
Never mind, this actually leads to E0446 even if the builder works. |
Ah yeah, appears that the properties magic only works with public properties types? Sorry you bumped into this |
Problem
HTML macro fails with the error
associated function
buildis private
.Steps To Reproduce
I import
use yew::prelude::*;
with a submodulemod menu;
with the codewith the Properties definition for
Menu
:I cannot find this error anywhere, so I suppose I'm running into a corner case.
Environment:
Questionnaire
The text was updated successfully, but these errors were encountered: