mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* Make Html a Result. * Fix tests. * Implement Suspense. * Schedule render when suspension is resumed. * Shift children into a detached node. * styled example. * Update wording a little bit. * Move hint to hint. * Add some tests. * Fix clippy. * Add docs. * Add to sidebar. * Fix syntax highlight. * Component -> BaseComponent. * Html -> VNode, HtmlResult = RenderResult<Html>. * Suspendible Function Component. * Add a method to create suspension from futures. * Revert extra changes. * Fix tests. * Update documentation. * Switch to custom trait to make test reliable. * Fix file permission. * Fix docs. * Remove log. * Fix file permission. * Fix component name error. * Make Suspension a future.
24 lines
660 B
Plaintext
24 lines
660 B
Plaintext
error: expected identifier
|
|
--> tests/function_component_attr/bad-name-fail.rs:8:22
|
|
|
|
|
8 | #[function_component(let)]
|
|
| ^^^
|
|
|
|
error: unexpected token
|
|
--> tests/function_component_attr/bad-name-fail.rs:17:23
|
|
|
|
|
17 | #[function_component(x, y, z)]
|
|
| ^
|
|
|
|
error: expected identifier
|
|
--> tests/function_component_attr/bad-name-fail.rs:26:22
|
|
|
|
|
26 | #[function_component(124)]
|
|
| ^^^
|
|
|
|
error: the component must not have the same name as the function
|
|
--> tests/function_component_attr/bad-name-fail.rs:35:22
|
|
|
|
|
35 | #[function_component(component)]
|
|
| ^^^^^^^^^
|