cve-rs icon indicating copy to clipboard operation
cve-rs copied to clipboard

They fixed it?

Open CyanChanges opened this issue 1 year ago • 2 comments

with latest rust nightly toolchain i have

nightly-x86_64-unknown-linux-gnu updated - rustc 1.83.0-nightly (2bd1e894e 2024-09-26) (from rustc 1.82.0-nightly (28a58f2fa 2024-07-31))

when i try compiling it image

error: lifetime may not live long enough
  --> /home/cyan/.cargo/registry/src/mirrors.ustc.edu.cn-4affec411d11e50f/cve-rs-0.6.0/src/lifetime_expansion.rs:44:9
   |
43 | pub fn expand<'a, 'b, T>(x: &'a T) -> &'b T {
   |               --  -- lifetime `'b` defined here
   |               |
   |               lifetime `'a` defined here
44 |     let f: fn(_, &'a T) -> &'b T = lifetime_translator;
   |            ^^^^^^^^^^^^^^^^^^^^^ type annotation requires that `'a` must outlive `'b`
   |
   = help: consider adding the following bound: `'a: 'b`

hmmm..? sus

CyanChanges avatar Sep 27 '24 06:09 CyanChanges