You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Perfect little crate! But unfortunately this won't work:
use struct_iterable::Iterable;#[derive(Iterable)]structFoo<'a>{s:&'astr}fnmain(){let s = "hello";let foo = Foo{ s };for(k, _)in foo.iter(){println!("{k}");}}
error[E0726]: implicit elided lifetime not allowed here
--> src/lib.rs:4:8
|
4 | struct Foo<'a> {
| ^^^ expected lifetime parameter
|
help: indicate the anonymous lifetime
|
4 | struct Foo<'_><'a> {
| ++++
For more information about this error, try `rustc --explain E0726`.
error: could not compile `arif` (lib) due to previous error
The text was updated successfully, but these errors were encountered:
Hi! Perfect little crate! But unfortunately this won't work:
The text was updated successfully, but these errors were encountered: