summaryrefslogtreecommitdiffstats
path: root/tests/ui/specialization/specialization-projection-alias.rs
blob: f1f0b47bb65036e223f36029b2184e1196a5b120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// run-pass
#![allow(dead_code)]
#![allow(unused_variables)]

#![feature(specialization)] //~ WARN the feature `specialization` is incomplete

// Regression test for ICE when combining specialized associated types and type
// aliases

trait Id_ {
    type Out;
}

type Id<T> = <T as Id_>::Out;

impl<T> Id_ for T {
    default type Out = T;
}

fn test_proection() {
    let x: Id<bool> = panic!();
}

fn main() {

}