2018-10-31 13:08:01 +01:00
|
|
|
// compile-pass
|
|
|
|
// skip-codegen
|
2017-06-18 18:18:08 +02:00
|
|
|
#![allow(warnings)]
|
|
|
|
trait Mirror {
|
|
|
|
type It;
|
|
|
|
}
|
|
|
|
|
|
|
|
impl<T> Mirror for T {
|
|
|
|
type It = Self;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-10-31 13:08:01 +01:00
|
|
|
|
|
|
|
fn main() {
|
2017-06-18 18:18:08 +02:00
|
|
|
let c: <u32 as Mirror>::It = 5;
|
|
|
|
const CCCC: <u32 as Mirror>::It = 5;
|
|
|
|
}
|