#[expect] does not work on arguments of trait methods and fn pointers #140088
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected to get two
unfulfilled_lint_expectations
warnings due to the#[expect]
attribute. Instead, the code compiles with no warnings.See also #140087 and #140089
Meta
Issue reproduces on the playground with version
1.88.0-nightly (2025-04-07 e643f59f6da3a84f43e7)
The text was updated successfully, but these errors were encountered: