Skip to content

Type inheritance in traits is not mentioned #155

Open
@Yanpas

Description

@Yanpas

Don't know how to name this feature, so example:

use std::fmt::Display;

pub trait Footrait {
    type Owned: Display;
}

struct AA(i32);

impl Footrait for AA {
	type Owned = String;
}

This is not mentioned anywhere, met this in standard library alloc::borrow::ToOwned

Metadata

Metadata

Assignees

Labels

A-typesArea: TypesNew ContentMissing features or aspects of language not currently documented.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions