You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/yew-macro/tests/derive_props/fail.stderr
+18-26Lines changed: 18 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -61,22 +61,14 @@ help: consider annotating `Value` with `#[derive(PartialEq)]`
61
61
9 | struct Value;
62
62
|
63
63
64
-
error[E0277]: the trait bound `AssertAllProps: HasProp<t3::_Props::value, _>` is not satisfied
64
+
error[E0277]: not all required properties have been provided
65
65
--> tests/derive_props/fail.rs:35:24
66
66
|
67
67
35 | ::yew::props!{ Props { } };
68
-
| ^^^^^ the trait `HasProp<t3::_Props::value, _>` is not implemented for `AssertAllProps`
69
-
|
70
-
= help: the following other types implement trait `HasProp<P, How>`:
71
-
<t1::CheckPropsAll<B> as HasProp<P, &dyn HasProp<P, How>>>
72
-
<t2::HasPropsvalue<B> as HasProp<t2::_Props::value, t2::HasPropsvalue<B>>>
73
-
<t2::HasPropsvalue<B> as HasProp<P, &dyn HasProp<P, How>>>
74
-
<t2::CheckPropsAll<B> as HasProp<P, &dyn HasProp<P, How>>>
75
-
<t3::HasPropsvalue<B> as HasProp<t3::_Props::value, t3::HasPropsvalue<B>>>
76
-
<t3::HasPropsvalue<B> as HasProp<P, &dyn HasProp<P, How>>>
77
-
<t3::CheckPropsAll<B> as HasProp<P, &dyn HasProp<P, How>>>
78
-
<t4::HasPropsvalue<B> as HasProp<t4::_Props::value, t4::HasPropsvalue<B>>>
79
-
and $N others
68
+
| ^^^^^ missing required properties for this component
69
+
|
70
+
= help: the trait `HasProp<t3::_Props::value, _>` is not implemented for `AssertAllProps`, which is required by `AssertAllProps: AllPropsFor<t3::PropsBuilder, _>`
71
+
= note: make sure all required properties are set before building the component
80
72
note: required for `t3::CheckPropsAll<AssertAllProps>` to implement `HasAllProps<t3::Props, (_,)>`
81
73
--> tests/derive_props/fail.rs:29:21
82
74
|
@@ -93,22 +85,14 @@ note: required by a bound in `html::component::properties::__macro::PreBuild::<T
93
85
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `PreBuild::<Token, B>::build`
94
86
= note: this error originates in the derive macro `Properties` (in Nightly builds, run with -Z macro-backtrace for more info)
95
87
96
-
error[E0277]: the trait bound `AssertAllProps: HasProp<t4::_Props::value, _>` is not satisfied
88
+
error[E0277]: not all required properties have been provided
97
89
--> tests/derive_props/fail.rs:47:24
98
90
|
99
91
47 | ::yew::props!{ Props { } };
100
-
| ^^^^^ the trait `HasProp<t4::_Props::value, _>` is not implemented for `AssertAllProps`
101
-
|
102
-
= help: the following other types implement trait `HasProp<P, How>`:
103
-
<t1::CheckPropsAll<B> as HasProp<P, &dyn HasProp<P, How>>>
104
-
<t2::HasPropsvalue<B> as HasProp<t2::_Props::value, t2::HasPropsvalue<B>>>
105
-
<t2::HasPropsvalue<B> as HasProp<P, &dyn HasProp<P, How>>>
106
-
<t2::CheckPropsAll<B> as HasProp<P, &dyn HasProp<P, How>>>
107
-
<t3::HasPropsvalue<B> as HasProp<t3::_Props::value, t3::HasPropsvalue<B>>>
108
-
<t3::HasPropsvalue<B> as HasProp<P, &dyn HasProp<P, How>>>
109
-
<t3::CheckPropsAll<B> as HasProp<P, &dyn HasProp<P, How>>>
110
-
<t4::HasPropsvalue<B> as HasProp<t4::_Props::value, t4::HasPropsvalue<B>>>
111
-
and $N others
92
+
| ^^^^^ missing required properties for this component
93
+
|
94
+
= help: the trait `HasProp<t4::_Props::value, _>` is not implemented for `AssertAllProps`, which is required by `AssertAllProps: AllPropsFor<t4::PropsBuilder, _>`
95
+
= note: make sure all required properties are set before building the component
112
96
note: required for `t4::CheckPropsAll<AssertAllProps>` to implement `HasAllProps<t4::Props, (_,)>`
113
97
--> tests/derive_props/fail.rs:41:21
114
98
|
@@ -168,3 +152,11 @@ error[E0271]: expected `foo` to be a fn item that returns `String`, but it retur
168
152
|
169
153
note: required by a bound in `Option::<T>::unwrap_or_else`
170
154
--> $RUST/core/src/option.rs
155
+
156
+
warning: unused variable: `bar`
157
+
--> tests/derive_props/fail.rs:100:12
158
+
|
159
+
100 | fn foo(bar: i32) -> String {
160
+
| ^^^ help: if this is intentional, prefix it with an underscore: `_bar`
0 commit comments