blob: 73d6115af00b16057007850595fffa0637c6dfb9 [file] [log] [blame] [edit]
//@ 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() {
}