rust/tests/ui/nll/projection-return.rs
2024-02-16 20:02:50 +00:00

18 lines
167 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() { }