rust-lang/rust

Tracking issue for `impl Trait` in `const` and `static` items and `let` bindings

Centril opened this issue ยท 4 comments

As provided for by rust-lang/rfcs#2071, this is a tracking issue for impl Trait in:

  • const items
  • static items
  • let bindings

Steps:

Unresolved questions:

  • Should the part about let bindings be recast more generally to be about coercions? This would allow foo as impl Debug and foo: impl Debug as well.

Blocking issues:

Incomplete. Search the F-impl_trait_in_bindings issue.

Rua commented

What's the status on this now? Is it ready to be stabilised?

The implementation was removed as part of #86729 and the corresponding checkbox should be unchecked.

Pinging, is there any progress on this feature?

Hopefully there will be soon, as it was the cleanest way for me to solve an issue just now.