track_caller does not work with closures and Fn* types #115302
Labels
A-closures
Area: Closures (`|…| { … }`)
C-bug
Category: This is a bug.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
F-track_caller
`#![feature(track_caller)]`
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
I tried this code:
I expected the panic to be reported at line 2
Instead, it still was reported at line 7.
I also tried.
but this reported as an error in core
I was able to work around the issue with code like this:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: