rust/tests/ui/nll/projection-return.rs
2023-01-11 09:32:08 +00:00

18 lines
166 B
Rust

// check-pass
#![feature(rustc_attrs)]
trait Foo {
type Bar;
}
impl Foo for () {
type Bar = u32;
}
fn foo() -> <() as Foo>::Bar {
22
}
fn main() { }