error: Invalid syntax encountered
--> tests/elements/element_with_single_expression_fail.rs:6:17
|
6 | rsx! {
()
};
| ^
error: Expected expressions within braces, found an empty block
--> tests/elements/element_with_single_expression_fail.rs:7:17
|
7 | rsx! { { }
};
| ^^^
error: Invalid syntax encountered
--> tests/elements/element_with_single_expression_fail.rs:9:18
|
9 | rsx! { String::from("Hello world!")
};
| ^^^^^^
error: Invalid syntax encountered
--> tests/elements/element_with_single_expression_fail.rs:11:18
|
11 | rsx! { val
};
| ^^^
error[E0425]: cannot find value `invalid_reference` in this scope
--> tests/elements/element_with_single_expression_fail.rs:8:20
|
8 | rsx! { { invalid_reference }
};
| ^^^^^^^^^^^^^^^^^ not found in this scope
error[E0277]: `NonDisplayStruct` doesn't implement `std::fmt::Display`
--> tests/elements/element_with_single_expression_fail.rs:13:18
|
13 | rsx! { { t }
};
| ^^-^^
| | |
| | this tail expression is of type `NonDisplayStruct`
| `NonDisplayStruct` cannot be formatted with the default formatter
|
= help: the trait `std::fmt::Display` is not implemented for `NonDisplayStruct`
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
= help: the following other types implement trait `From`:
>
>
>
>
>
= note: required for `NonDisplayStruct` to implement `ToString`
= note: required for `VNode` to implement `From`
error[E0277]: `NonDisplayStruct` doesn't implement `std::fmt::Display`
--> tests/elements/element_with_single_expression_fail.rs:14:18
|
14 | rsx! { { NonDisplayStruct }
};
| ^^----------------^^
| | |
| | this tail expression is of type `NonDisplayStruct`
| `NonDisplayStruct` cannot be formatted with the default formatter
|
= help: the trait `std::fmt::Display` is not implemented for `NonDisplayStruct`
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
= help: the following other types implement trait `From`:
>
>
>
>
>
= note: required for `NonDisplayStruct` to implement `ToString`
= note: required for `VNode` to implement `From`
error[E0277]: `NonDisplayStruct` doesn't implement `std::fmt::Display`
--> tests/elements/element_with_single_expression_fail.rs:16:18
|
16 | rsx! { { node() }
};
| ^^------^^
| | |
| | this tail expression is of type `NonDisplayStruct`
| `NonDisplayStruct` cannot be formatted with the default formatter
|
= help: the trait `std::fmt::Display` is not implemented for `NonDisplayStruct`
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
= help: the following other types implement trait `From`:
>
>
>
>
>
= note: required for `NonDisplayStruct` to implement `ToString`
= note: required for `VNode` to implement `From`