rust/tests/target/issue-5151/minimum_example.rs

17 lines
227 B
Rust
Raw Normal View History

#![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 {};
}