Files
rust/tests
Jonathan Brouwer 46541dc18b Rollup merge of #159839 - Albab-Hasan:e0271-point-closure-return-span, r=oli-obk
point at closure return expression in non-`FnOnce` E0271 errors

when a closure literal is passed as a function argument and E0271 fires for a projection that isnt `FnOnceOutput`. the error now points at the closures return expression and labels the closure declaration with "this closure". mirroring the existing FnOnce handling in `maybe_detailed_projection_msg`. which cant recover the closure from `self_ty` alone.

fixes https://github.com/rust-lang/rust/issues/42390

r? @estebank
2026-08-11 11:14:54 +02:00
..
2026-08-10 21:40:09 +02:00
2026-08-10 10:05:45 +02:00