/
fail.stderr
90 lines (81 loc) · 3.24 KB
/
fail.stderr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
error: unexpected end of input, expected expression
--> $DIR/fail.rs:57:18
|
57 | #[prop_or()]
| ^^
error: cannot find attribute `props` in this scope
--> $DIR/fail.rs:22:11
|
22 | #[props(default)]
| ^^^^^
error[E0425]: cannot find value `foo` in this scope
--> $DIR/fail.rs:87:24
|
87 | #[prop_or_else(foo)]
| ^^^ not found in this scope
|
help: possible candidates are found in other modules, you can import them into scope
|
83 | use crate::t10::foo;
|
83 | use crate::t9::foo;
|
error[E0277]: the trait bound `t1::Value: std::default::Default` is not satisfied
--> $DIR/fail.rs:9:21
|
9 | #[derive(Clone, Properties)]
| ^^^^^^^^^^ the trait `std::default::Default` is not implemented for `t1::Value`
|
= note: required by `std::default::Default::default`
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0599]: no method named `build` found for struct `t3::PropsBuilder<t3::PropsBuilderStep_missing_required_prop_value>` in the current scope
--> $DIR/fail.rs:35:26
|
29 | #[derive(Clone, Properties)]
| ---------- method `build` not found for this
...
35 | Props::builder().build();
| ^^^^^ method not found in `t3::PropsBuilder<t3::PropsBuilderStep_missing_required_prop_value>`
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following trait defines an item `build`, perhaps you need to implement it:
candidate #1: `proc_macro::bridge::server::TokenStreamBuilder`
error[E0599]: no method named `b` found for struct `t4::PropsBuilder<t4::PropsBuilderStep_missing_required_prop_a>` in the current scope
--> $DIR/fail.rs:48:26
|
41 | #[derive(Clone, Properties)]
| ---------- method `b` not found for this
...
48 | Props::builder().b(1).a(2).build();
| ^ help: there is a method with a similar name: `a`
error[E0308]: mismatched types
--> $DIR/fail.rs:67:19
|
67 | #[prop_or(123)]
| ^^^
| |
| expected struct `std::string::String`, found integer
| help: try using a conversion method: `123.to_string()`
error[E0618]: expected function, found `{integer}`
--> $DIR/fail.rs:77:24
|
77 | #[prop_or_else(123)]
| ^^^ call expression requires function
error[E0061]: this function takes 1 argument but 0 arguments were supplied
--> $DIR/fail.rs:97:24
|
97 | #[prop_or_else(foo)]
| ^^^- supplied 0 arguments
| |
| expected 1 argument
...
101 | fn foo(bar: i32) -> String {
| -------------------------- defined here
error[E0308]: mismatched types
--> $DIR/fail.rs:111:24
|
111 | #[prop_or_else(foo)]
| ^^^
| |
| expected struct `std::string::String`, found `i32`
| help: try using a conversion method: `foo.to_string()`