]> git.proxmox.com Git - rustc.git/blame - tests/rustdoc-ui/issue-110629-private-type-cycle-dyn.rs
New upstream version 1.73.0+dfsg1
[rustc.git] / tests / rustdoc-ui / issue-110629-private-type-cycle-dyn.rs
CommitLineData
49aad941
FG
1type Bar<'a, 'b> = Box<dyn PartialEq<Bar<'a, 'b>>>;
2//~^ ERROR cycle detected when expanding type alias
3
4fn bar<'a, 'b>(i: &'a i32) -> Bar<'a, 'b> {
5 Box::new(i)
6}
7
8fn main() {
9 let meh = 42;
10 let muh = 42;
11 assert!(bar(&meh) == bar(&muh));
12}