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
|
|
|
|
|
2020-05-31 15:11:51 +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>);
|
|
|
|
|
2020-05-31 15:11:51 +00:00
|
|
|
fn main() {
|
|
|
|
//~^ NOTE cycle used when optimizing MIR for `main`
|
2015-10-25 21:02:15 +00:00
|
|
|
let _s = S(None);
|
|
|
|
}
|