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
error[E0310]: the parameter type `T` may not live long enough
--> src/segmented_buffer.rs:104:9
|
103 | pub struct SegmentedBuf<T> {
| - help: consider adding an explicit lifetime bound...: `T: 'static`
104 | _c: countme::Count<Self>,
| ^^^^^^^^^^^^^^^^^^^^ ...so that the type `SegmentedBuf<T>` will meet its required lifetime bounds...
|
note: ...that is required by this bound
--> /home/pkehl/.cargo/registry/src/github.com-1ecc6299db9ec823/countme-3.0.1/src/lib.rs:71:21
|
71 | pub struct Count<T: 'static> {
May I suggest a note about that in README.md, please. Especially so because this use of 'static is infrequent, and cargoc's message is not helpful either.
Somewhere between v. 2 and 3.0.1
countme
changed so the followingfails with
FYI the error comes from https://github.com/logdna/logdna-rust/blob/main/src/segmented_buffer.rs#L103= (after updating the version in
Cargo.toml
). I'm not familiar withlogdna-rust
yet, but I'll try to narrow this issue down.(The same error happens with Rust
1.61.0
and1.63.0-nightly
.)The text was updated successfully, but these errors were encountered: