Skip to content

Spurious "unused lifetime parameter" warning with async function #64493

Closed
@varkor

Description

@varkor
#![warn(unused_lifetimes)]

async fn async_fn(&ref mut s: &[i32]) {} //~ WARN lifetime parameter `'_` never used

Metadata

Metadata

Assignees

Labels

A-async-awaitArea: Async & AwaitA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions