code:
#[derive(Clone, Debug, Steel, PartialEq)]
struct ElementContainer {
element: ElementRef,
}
doing this won't work, because ElementRef needs a lifetime parameter, gives me this error:
error[E0106]: missing lifetime specifier
--> src/parsing.rs:17:14
|
17 | element: ElementRef,
| ^^^^^^^^^^ expected named lifetime parameter
|
help: consider introducing a named lifetime parameter
|
16 ~ struct ElementContainer<'a> {
17 ~ element: ElementRef<'a>,
making the suggested changes, i get this instead
error[E0726]: implicit elided lifetime not allowed here
--> src/parsing.rs:16:8
|
16 | struct ElementContainer<'a> {
| ^^^^^^^^^^^^^^^^ expected lifetime parameter
|
help: indicate the anonymous lifetime
|
16 | struct ElementContainer<'_><'a> {
| ++++
what should I do?