2018-12-25 15:56:47 +00:00
|
|
|
//~ ERROR cycle detected when computing layout of
|
2018-07-15 21:11:54 +00:00
|
|
|
//~| NOTE ...which requires computing layout of
|
|
|
|
//~| NOTE ...which again requires computing layout of
|
2016-06-20 20:55:14 +00:00
|
|
|
|
2019-12-14 03:28:32 +00:00
|
|
|
// build-fail
|
|
|
|
|
2016-01-09 02:41:37 +00:00
|
|
|
trait Mirror { type It: ?Sized; }
|
|
|
|
impl<T: ?Sized> Mirror for T { type It = Self; }
|
2015-10-25 21:02:15 +00:00
|
|
|
struct S(Option<<S as Mirror>::It>);
|
|
|
|
|
2018-06-04 16:32:06 +00:00
|
|
|
fn main() { //~ NOTE cycle used when processing `main`
|
2015-10-25 21:02:15 +00:00
|
|
|
let _s = S(None);
|
|
|
|
}
|