blob: 5c340434691f19066225347ba6ec8b6a18b0e75e [file] [log] [blame]
// compile-flags:-Zborrowck=mir
// build-pass (FIXME(62277): could be check-pass?)
#![feature(rustc_attrs)]
trait Foo {
type Bar;
}
impl Foo for () {
type Bar = u32;
}
fn foo() -> <() as Foo>::Bar {
22
}
fn main() { }