11error: unexpected end of input, expected expression
2- --> $DIR/ fail.rs:57:18
2+ --> tests/derive_props/ fail.rs:57:19
33 |
4457 | #[prop_or()]
5- | ^ ^
5+ | ^
66
77error: cannot find attribute `props` in this scope
8- --> $DIR /fail.rs:22:11
8+ --> tests/derive_props /fail.rs:22:11
99 |
101022 | #[props(default)]
1111 | ^^^^^
12- |
13- = note: consider importing one of these items:
14- yew::props
15- yew_macro::props
1612
1713error[E0425]: cannot find value `foo` in this scope
18- --> $DIR /fail.rs:87:24
14+ --> tests/derive_props /fail.rs:87:24
1915 |
201687 | #[prop_or_else(foo)]
2117 | ^^^ not found in this scope
@@ -27,86 +23,98 @@ help: consider importing one of these items
272383 | use crate::t9::foo;
2824 |
2925
30- error[E0277]: the trait bound `Value: Default` is not satisfied
31- --> $DIR/fail.rs:9:21
32- |
33- 9 | #[derive(Clone, Properties, PartialEq)]
34- | ^^^^^^^^^^ the trait `Default` is not implemented for `Value`
35- |
36- = note: required by `Option::<T>::unwrap_or_default`
37- = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
38-
39- error[E0369]: binary operation `==` cannot be applied to type `Value`
40- --> $DIR/fail.rs:13:9
41- |
42- 13 | value: Value,
43- | ^^^^^^^^^^^^
44- |
45- = note: an implementation of `std::cmp::PartialEq` might be missing for `Value`
46- = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
47-
48- error[E0369]: binary operation `!=` cannot be applied to type `Value`
49- --> $DIR/fail.rs:13:9
50- |
51- 13 | value: Value,
52- | ^^^^^^^^^^^^
53- |
54- = note: an implementation of `std::cmp::PartialEq` might be missing for `Value`
55- = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
56-
5726error[E0599]: no method named `build` found for struct `t3::PropsBuilder<t3::PropsBuilderStep_missing_required_prop_value>` in the current scope
58- --> $DIR /fail.rs:35:26
27+ --> tests/derive_props /fail.rs:35:26
5928 |
602929 | #[derive(Clone, Properties, PartialEq)]
6130 | ---------- method `build` not found for this
6231...
633235 | Props::builder().build();
6433 | ^^^^^ method not found in `t3::PropsBuilder<t3::PropsBuilderStep_missing_required_prop_value>`
34+ |
35+ = note: the method was found for
36+ - `t3::PropsBuilder<t3::PropsBuilderStepPropsBuilder>`
6537
6638error[E0599]: no method named `b` found for struct `t4::PropsBuilder<PropsBuilderStep_missing_required_prop_a>` in the current scope
67- --> $DIR /fail.rs:48:26
39+ --> tests/derive_props /fail.rs:48:26
6840 |
694141 | #[derive(Clone, Properties, PartialEq)]
7042 | ---------- method `b` not found for this
7143...
724448 | Props::builder().b(1).a(2).build();
7345 | ^ help: there is an associated function with a similar name: `a`
7446
47+ error[E0277]: the trait bound `Value: Default` is not satisfied
48+ --> tests/derive_props/fail.rs:9:21
49+ |
50+ 9 | #[derive(Clone, Properties, PartialEq)]
51+ | ^^^^^^^^^^ the trait `Default` is not implemented for `Value`
52+ |
53+ note: required by `Option::<T>::unwrap_or_default`
54+ = note: this error originates in the derive macro `Properties` (in Nightly builds, run with -Z macro-backtrace for more info)
55+
56+ error[E0369]: binary operation `==` cannot be applied to type `Value`
57+ --> tests/derive_props/fail.rs:13:9
58+ |
59+ 9 | #[derive(Clone, Properties, PartialEq)]
60+ | --------- in this derive macro expansion
61+ ...
62+ 13 | value: Value,
63+ | ^^^^^^^^^^^^
64+ |
65+ = note: an implementation of `std::cmp::PartialEq` might be missing for `Value`
66+ = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
67+
68+ error[E0369]: binary operation `!=` cannot be applied to type `Value`
69+ --> tests/derive_props/fail.rs:13:9
70+ |
71+ 9 | #[derive(Clone, Properties, PartialEq)]
72+ | --------- in this derive macro expansion
73+ ...
74+ 13 | value: Value,
75+ | ^^^^^^^^^^^^
76+ |
77+ = note: an implementation of `std::cmp::PartialEq` might be missing for `Value`
78+ = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
79+
7580error[E0308]: mismatched types
76- --> $DIR /fail.rs:67:19
81+ --> tests/derive_props /fail.rs:67:19
7782 |
788367 | #[prop_or(123)]
7984 | ^^^ expected struct `String`, found integer
8085 |
8186help: try using a conversion method
8287 |
838867 | #[prop_or(123.to_string())]
84- | ^^^^^^^^^^^^^^^
89+ | ++++++++++++
859067 | #[prop_or(123.to_string())]
86- | ^^^^^^^^^^^^^^^
91+ | ++++++++++++
8792
8893error[E0277]: expected a `FnOnce<()>` closure, found `{integer}`
89- --> $DIR /fail.rs:77:24
94+ --> tests/derive_props /fail.rs:77:24
9095 |
919677 | #[prop_or_else(123)]
9297 | ^^^ expected an `FnOnce<()>` closure, found `{integer}`
9398 |
9499 = help: the trait `FnOnce<()>` is not implemented for `{integer}`
95100 = note: wrap the `{integer}` in a closure with no arguments: `|| { /* code */ }`
101+ note: required by a bound in `Option::<T>::unwrap_or_else`
96102
97103error[E0593]: function is expected to take 0 arguments, but it takes 1 argument
98- --> $DIR /fail.rs:97:24
104+ --> tests/derive_props /fail.rs:97:24
99105 |
10010697 | #[prop_or_else(foo)]
101107 | ^^^ expected function that takes 0 arguments
102108...
103109101 | fn foo(bar: i32) -> String {
104110 | -------------------------- takes 1 argument
111+ |
112+ note: required by a bound in `Option::<T>::unwrap_or_else`
105113
106114error[E0271]: type mismatch resolving `<fn() -> i32 {t10::foo} as FnOnce<()>>::Output == String`
107- --> $DIR /fail.rs:111:24
115+ --> tests/derive_props /fail.rs:111:24
108116 |
109117111 | #[prop_or_else(foo)]
110118 | ^^^ expected struct `String`, found `i32`
111119 |
112- = note: required by `Option::<T>::unwrap_or_else`
120+ note: required by `Option::<T>::unwrap_or_else`
0 commit comments