]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/projection-return.rs
Rollup merge of #105216 - GuillaumeGomez:rm-unused-gui-test, r=notriddle
[rust.git] / src / test / ui / nll / projection-return.rs
1 // check-pass
2
3 #![feature(rustc_attrs)]
4
5 trait Foo {
6     type Bar;
7 }
8
9 impl Foo for () {
10     type Bar = u32;
11 }
12
13 fn foo() -> <() as Foo>::Bar {
14     22
15 }
16
17 fn main() { }