mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
17 lines
227 B
Rust
17 lines
227 B
Rust
#![feature(more_qualified_paths)]
|
|
|
|
struct Struct {}
|
|
|
|
trait Trait {
|
|
type Type;
|
|
}
|
|
|
|
impl Trait for Struct {
|
|
type Type = Self;
|
|
}
|
|
|
|
fn main() {
|
|
// keep the qualified path details
|
|
let _ = <Struct as Trait>::Type {};
|
|
}
|