summaryrefslogtreecommitdiffstats
path: root/tests/ui/occurs-check-2.rs
blob: f36682a3dd82132b577ccfece5b28e9e7147c694 (plain)
1
2
3
4
5
6
7
8
9
10
fn main() {

    let f;
    let g;

    g = f;
    f = Box::new(g);
    //~^  ERROR mismatched types
    //~| cyclic type of infinite size
}