|
1 | | -error: expected an expression after the keyword `for` |
2 | | - --> tests/html_macro/iterable-fail.rs:4:13 |
| 1 | +error: unexpected end of input, expected one of: identifier, `::`, `<`, `_`, literal, `const`, `ref`, `mut`, `&`, parentheses, square brackets, `..`, `const` |
| 2 | + --> tests/html_macro/iterable-fail.rs:4:5 |
3 | 3 | | |
4 | 4 | 4 | html! { for }; |
5 | | - | ^^^ |
6 | | - |
7 | | -error[E0277]: `()` is not an iterator |
8 | | - --> tests/html_macro/iterable-fail.rs:5:17 |
9 | | - | |
10 | | -5 | html! { for () }; |
11 | | - | ^^ `()` is not an iterator |
| 5 | + | ^^^^^^^^^^^^^ |
12 | 6 | | |
13 | | - = help: the trait `Iterator` is not implemented for `()`, which is required by `(): IntoIterator` |
14 | | - = note: required for `()` to implement `IntoIterator` |
| 7 | + = note: this error originates in the macro `html` (in Nightly builds, run with -Z macro-backtrace for more info) |
15 | 8 |
|
16 | | -error[E0277]: `()` is not an iterator |
17 | | - --> tests/html_macro/iterable-fail.rs:6:17 |
| 9 | +error: unexpected end of input, expected `in` |
| 10 | + --> tests/html_macro/iterable-fail.rs:5:5 |
18 | 11 | | |
19 | | -6 | html! { for {()} }; |
20 | | - | ^--^ |
21 | | - | || |
22 | | - | |this tail expression is of type `()` |
23 | | - | `()` is not an iterator |
| 12 | +5 | html! { for () }; |
| 13 | + | ^^^^^^^^^^^^^^^^ |
24 | 14 | | |
25 | | - = help: the trait `Iterator` is not implemented for `()`, which is required by `(): IntoIterator` |
26 | | - = note: required for `()` to implement `IntoIterator` |
| 15 | + = note: this error originates in the macro `html` (in Nightly builds, run with -Z macro-backtrace for more info) |
27 | 16 |
|
28 | | -error[E0277]: `()` doesn't implement `std::fmt::Display` |
29 | | - --> tests/html_macro/iterable-fail.rs:7:17 |
| 17 | +error: expected `in` |
| 18 | + --> tests/html_macro/iterable-fail.rs:7:33 |
30 | 19 | | |
31 | 20 | 7 | html! { for Vec::<()>::new().into_iter() }; |
32 | | - | ^^^ `()` cannot be formatted with the default formatter |
33 | | - | |
34 | | - = help: the trait `std::fmt::Display` is not implemented for `()`, which is required by `VNode: FromIterator<_>` |
35 | | - = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead |
36 | | - = help: the trait `FromIterator<A>` is implemented for `VNode` |
37 | | - = note: required for `()` to implement `ToString` |
38 | | - = note: required for `VNode` to implement `From<()>` |
39 | | - = note: required for `()` to implement `Into<VNode>` |
40 | | - = note: required for `VNode` to implement `FromIterator<()>` |
41 | | -note: required by a bound in `collect` |
42 | | - --> $RUST/core/src/iter/traits/iterator.rs |
| 21 | + | ^ |
43 | 22 |
|
44 | | -error[E0277]: `()` doesn't implement `std::fmt::Display` |
45 | | - --> tests/html_macro/iterable-fail.rs:10:17 |
| 23 | +error: unexpected end of input, expected `in` |
| 24 | + --> tests/html_macro/iterable-fail.rs:10:5 |
46 | 25 | | |
47 | 26 | 10 | html! { for empty }; |
48 | | - | ^^^^^ `()` cannot be formatted with the default formatter |
| 27 | + | ^^^^^^^^^^^^^^^^^^^ |
49 | 28 | | |
50 | | - = help: the trait `std::fmt::Display` is not implemented for `()`, which is required by `VNode: FromIterator<_>` |
51 | | - = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead |
52 | | - = help: the trait `FromIterator<A>` is implemented for `VNode` |
53 | | - = note: required for `()` to implement `ToString` |
54 | | - = note: required for `VNode` to implement `From<()>` |
55 | | - = note: required for `()` to implement `Into<VNode>` |
56 | | - = note: required for `VNode` to implement `FromIterator<()>` |
57 | | -note: required by a bound in `collect` |
58 | | - --> $RUST/core/src/iter/traits/iterator.rs |
| 29 | + = note: this error originates in the macro `html` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 30 | + |
| 31 | +error[E0277]: `()` is not an iterator |
| 32 | + --> tests/html_macro/iterable-fail.rs:6:18 |
| 33 | + | |
| 34 | +6 | html! { {for ()} }; |
| 35 | + | ^^ `()` is not an iterator |
| 36 | + | |
| 37 | + = help: the trait `Iterator` is not implemented for `()`, which is required by `(): IntoIterator` |
| 38 | + = note: required for `()` to implement `IntoIterator` |
59 | 39 |
|
60 | 40 | error[E0277]: `()` doesn't implement `std::fmt::Display` |
61 | | - --> tests/html_macro/iterable-fail.rs:13:17 |
| 41 | + --> tests/html_macro/iterable-fail.rs:13:18 |
62 | 42 | | |
63 | | -13 | html! { for empty.iter() }; |
64 | | - | ^^^^^ `()` cannot be formatted with the default formatter |
| 43 | +13 | html! { {for empty.iter()} }; |
| 44 | + | ^^^^^ `()` cannot be formatted with the default formatter |
65 | 45 | | |
66 | 46 | = help: the trait `std::fmt::Display` is not implemented for `()`, which is required by `VNode: FromIterator<_>` |
67 | 47 | = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead |
|
0 commit comments