mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* update rust version for macro test to 1.51 * enable const generic tests * run integration tests using MSRV * am blind * clippy, fmt * apply suggestion
47 lines
2.3 KiB
Plaintext
47 lines
2.3 KiB
Plaintext
error[E0277]: `()` doesn't implement `std::fmt::Display`
|
|
--> $DIR/block-fail.rs:6:15
|
|
|
|
|
6 | { () }
|
|
| ^^ `()` cannot be formatted with the default formatter
|
|
|
|
|
= help: the trait `std::fmt::Display` is not implemented for `()`
|
|
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
|
|
= note: required because of the requirements on the impl of `ToString` for `()`
|
|
= note: required because of the requirements on the impl of `From<()>` for `VNode`
|
|
= note: required because of the requirements on the impl of `Into<VNode>` for `()`
|
|
= note: 2 redundant requirements hidden
|
|
= note: required because of the requirements on the impl of `Into<NodeSeq<(), VNode>>` for `()`
|
|
= note: required by `into`
|
|
|
|
error[E0277]: `()` doesn't implement `std::fmt::Display`
|
|
--> $DIR/block-fail.rs:12:16
|
|
|
|
|
12 | <div>{ not_tree() }</div>
|
|
| ^^^^^^^^ `()` cannot be formatted with the default formatter
|
|
|
|
|
= help: the trait `std::fmt::Display` is not implemented for `()`
|
|
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
|
|
= note: required because of the requirements on the impl of `ToString` for `()`
|
|
= note: required because of the requirements on the impl of `From<()>` for `VNode`
|
|
= note: required because of the requirements on the impl of `Into<VNode>` for `()`
|
|
= note: 2 redundant requirements hidden
|
|
= note: required because of the requirements on the impl of `Into<NodeSeq<(), VNode>>` for `()`
|
|
= note: required by `into`
|
|
|
|
error[E0277]: `()` doesn't implement `std::fmt::Display`
|
|
--> $DIR/block-fail.rs:15:17
|
|
|
|
|
15 | <>{ for (0..3).map(|_| not_tree()) }</>
|
|
| ^^^^^^ `()` cannot be formatted with the default formatter
|
|
|
|
|
::: $WORKSPACE/packages/yew/src/utils.rs
|
|
|
|
|
| T: Into<R>,
|
|
| ------- required by this bound in `into_node_iter`
|
|
|
|
|
= help: the trait `std::fmt::Display` is not implemented for `()`
|
|
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
|
|
= note: required because of the requirements on the impl of `ToString` for `()`
|
|
= note: required because of the requirements on the impl of `From<()>` for `VNode`
|
|
= note: required because of the requirements on the impl of `Into<VNode>` for `()`
|