-
-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationquestionQuestions about the libraryQuestions about the library
Description
Do you know of an approach to debug errors such as these ?
error[E0502]: cannot borrow value as mutable because it is also borrowed as immutable
--> src/tui/mod.rs:275:1
|
275 | #[component]
| ^^^^^^^^^^^^
| |
| mutable borrow occurs here
| immutable borrow occurs here
| immutable borrow later used here
| in this attribute macro expansion
|
::: /home/merlijn/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/iocraft-macros-0.2.3/src/lib.rs:648:1
|
648 | pub fn component(_attr: TokenStream, item: TokenStream) -> TokenStream {
| ---------------------------------------------------------------------- in this expansion of `#[component]`
I've had other cases like this with lifetimes and references but was able to solve those in the end.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationquestionQuestions about the libraryQuestions about the library