Skip to content

rustdoc: support RTN once its syntax is somewhat finalized  #123996

Open
@fmease

Description

@fmease

This is blocked by T-lang's decision on the final syntax of RTN! Unblocked (IINM)


Source:

#![feature(return_type_notation)]

pub fn f<T: Trait<f(): Copy>>() {}

pub trait Trait { fn f() -> impl Clone; }

Current rendered output of f (local scenario, HIR-based cleaning):

pub fn f<T: Trait<f: Copy>>()

Current rendered output of f (inlined cross-crate re-export scenario, rustc_middle::ty-based cleaning):

pub fn f<T>()
where
    T: Trait,
    impl Clone: Copy,

Metadata

Metadata

Labels

C-bugCategory: This is a bug.F-return_type_notation`#[feature(return_type_notation)]`P-lowLow priorityT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions