summary refs log tree commit diff
path: root/src/test/ui/issues/issue-26548.rs
blob: 5b6c77d0bd1a38a550fa425c9753db35003058b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
//~ ERROR cycle detected when computing layout of
//~| NOTE ...which requires computing layout of
//~| NOTE ...which again requires computing layout of

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 processing `main`
    let _s = S(None);
}