在当前(2025.4.7)最新已发布的rust编译器稳定版本内,如下哪个功能尚未支持: A trait upcast B async closure C let chain D…
- User
在当前(2025.4.7)最新已发布的rust编译器稳定版本内,如下哪个功能尚未支持: A trait upcast B async closure C let chain D inline const
Assistant
Based on the current state of the Rust compiler as of April 7, 2025, the feature that is not yet supported in the stable version is:
B. async closure
Explanation:
- Trait Upcast: This feature is already stabilized in Rust, allowing traits to be upcast to their supertraits in certain contexts.
- Async Closure: While there has been significant discussion and development around async closures (e.g., RFC 3668), this feature has not yet been stabilized in the Rust compiler as of the given date[[11]].
- Let Chain: The let chain feature, which allows chaining multiple
letbindings and boolean conditions iniforwhileexpressions, has been stabilized in recent Rust versions[[8]][[10]]. - Inline Const: Inline constants have been stabilized in Rust, enabling the use of constant expressions directly in code[[6]].
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.