Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Tracking issue for RFC 803, "Type ascription" #23416

Copy link
Copy link
@nikomatsakis

Description

@nikomatsakis
Issue body actions

Superseded by #101728 due to the landing of RFC 3307

Tracking issue for rust-lang/rfcs#803. Important points:

  • Implement the expr:Type syntax
  • Ensure soundness with respect to ref positions:
    • let ref x = <expr> / let mut ref = <expr>
    • match <expr>: Type { ref x => ... }
    • (<expr>: Type).method_with_ref_self()
  • Permit coercions like &[1, 2, 3]: &[u8] -- permit coercion in type ascription #78248
denisandroid, Elrendio, isbear, 8176135, ryzhyk and 44 morezohnannor, pushkine, SeniorMars, vE5li, Brasilius and 1 moremykhailokrainik, VinegarChicken, museun, oilaba, king-11 and 6 moreserid, kaizhang, SeniorMars and schneiderfelipevyas-n

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.B-RFC-implementedBlocker: Approved by a merged RFC and implemented but not stabilized.Blocker: Approved by a merged RFC and implemented but not stabilized.B-unstableBlocker: Implemented in the nightly compiler and unstable.Blocker: Implemented in the nightly compiler and unstable.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-design-concernsStatus: There are blocking design concerns.Status: There are blocking design concerns.T-langRelevant to the language teamRelevant to the language team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.