rust/src/test/ui/recursion/issue-26548-recursion-via-normalize.rs

14 lines
368 B
Rust
Raw Normal View History

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
// build-fail
trait Mirror { type It: ?Sized; }
impl<T: ?Sized> Mirror for T { type It = Self; }
struct S(Option<<S as Mirror>::It>);
2018-06-04 16:32:06 +00:00
fn main() { //~ NOTE cycle used when processing `main`
let _s = S(None);
}