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