fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0391]: cycle detected when computing layout of `S<S<()>>` 2 | 3 = note: ...which requires computing layout of `<S<()> as Tr>::I`... 4 = note: ...which again requires computing layout of `S<S<()>>`, completing the cycle 5 = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information 6 7error: post-monomorphization error: a cycle occurred during layout computation 8 --> RUSTLIB/core/src/mem/mod.rs:LL:CC 9 | 10LL | intrinsics::size_of::<T>() 11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ a cycle occurred during layout computation 12 | 13 = note: inside `std::mem::size_of::<S<S<()>>>` at RUSTLIB/core/src/mem/mod.rs:LL:CC 14note: inside `foo::<S<()>>` 15 --> $DIR/layout_cycle.rs:LL:CC 16 | 17LL | mem::size_of::<S<T>>() 18 | ^^^^^^^^^^^^^^^^^^^^^^ 19note: inside `main` 20 --> $DIR/layout_cycle.rs:LL:CC 21 | 22LL | println!("{}", foo::<S<()>>()); 23 | ^^^^^^^^^^^^^^ 24 25note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace 26 27error: aborting due to 2 previous errors 28 29For more information about this error, try `rustc --explain E0391`.