explicit-outlives-requirements suggestion breaks code #134902
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
rustc --edition=2024 --crate-type lib --force-warn explicit-outlives-requirements object-lifetime-default-from-ref-struct.rs
=>
applying the suggestion causes to code to no longer build:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: