mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
27 lines
365 B
Rust
27 lines
365 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
#![allow(unused_variables)]
|
|
|
|
#![feature(specialization)]
|
|
|
|
// 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() {
|
|
|
|
}
|