blob: 017f53d1457d828e3f6de0ed04a03d578f7f05e8 [file] [log] [blame]
// compile-flags:-Zborrowck=mir
// check-pass
#![feature(rustc_attrs)]
trait Foo {
type Bar;
}
impl Foo for () {
type Bar = u32;
}
fn foo() -> <() as Foo>::Bar {
22
}
fn main() { }