Open
Description
Code
fn main() {
let _: extern fn<'a: 'static>();
}
The problem is this first garbage span:
warning: lifetime parameter `'a` never used
--> recover-fn-ptr-with-generics.rs:2:22
|
2 | let _: extern fn<'a: 'static>();
| - ^^
| |
| help: elide the unused lifetime
|
= note: requested on the command line with `-W unused-lifetimes`
Meta
rustc --version --verbose
:
eebdfb55fce148676c24555505aebf648123b2de
Error output
<output>
Metadata
Metadata
Assignees
Labels
Area: Lints (warnings about flaws in source code) such as unused_mut.Category: This is a bug.Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Lint: unused_lifetimesStatus: This bug is tracked inside the repo by a `known-bug` test.Status: A Minimal Complete and Verifiable Example has been found for this issueRelevant to the compiler team, which will review and decide on the PR/issue.This issue requires a build of rustc or tooling with debug-assertions in some way