summary refs log tree commit diff
path: root/src/test/ui/recursion/issue-26548-recursion-via-normalize.rs
blob: 4d1cd059c27b5e64e5072f33f2e3b920ba1687b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//~ ERROR cycle detected when computing layout of
//~| NOTE ...which requires computing layout of
//~| NOTE ...which again requires computing layout of

// build-fail

trait Mirror {
    type It: ?Sized;
}
impl<T: ?Sized> Mirror for T {
    type It = Self;
}
struct S(Option<<S as Mirror>::It>);

fn main() {
    //~^ NOTE cycle used when optimizing MIR for `main`
    let _s = S(None);
}