]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/self-referential-3.rs
unboxed-closures and type-alias-impl-trait nll revisions
[rust.git] / src / test / ui / type-alias-impl-trait / self-referential-3.rs
1 // run-pass
2 #![feature(type_alias_impl_trait)]
3
4 type Bar<'a, 'b> = impl PartialEq<Bar<'a, 'b>> + std::fmt::Debug;
5
6 fn bar<'a, 'b>(i: &'a i32) -> Bar<'a, 'b> {
7     i
8 }
9
10 fn main() {
11     let meh = 42;
12     let muh = 42;
13     assert_eq!(bar(&meh), bar(&muh));
14 }