2019-06-12 18:18:32 +03:00
|
|
|
//@ check-pass
|
|
|
|
|
|
2017-06-18 18:18:08 +02:00
|
|
|
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;
|
|
|
|
|
}
|