-
Notifications
You must be signed in to change notification settings - Fork 112
Closed
Description
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))
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
Metadata
Metadata
Assignees
Labels
No labels