]> git.lizzy.rs Git - rust.git/blob - tests/ui/occurs-check-2.rs
Rollup merge of #105172 - alexs-sh:issue-98861-fix-next, r=scottmcm
[rust.git] / tests / ui / occurs-check-2.rs
1 fn main() {
2
3     let f;
4     let g;
5
6     g = f;
7     f = Box::new(g);
8     //~^  ERROR mismatched types
9     //~| cyclic type of infinite size
10 }