rust/src/test/ui/issues/issue-26548.rs
2018-12-25 21:08:33 -07:00

12 lines
353 B
Rust

//~ 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);
}