You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/layout/layout-cycle.stderr
+2-8
Original file line number
Diff line number
Diff line change
@@ -2,16 +2,10 @@ error[E0391]: cycle detected when computing layout of `S<S<()>>`
2
2
|
3
3
= note: ...which requires computing layout of `<S<()> as Tr>::I`...
4
4
= note: ...which again requires computing layout of `S<S<()>>`, completing the cycle
5
-
note: cycle used when finalizing codegen MIR for `core::mem::size_of::<S<S<()>>>`
6
-
--> $SRC_DIR/core/src/mem/mod.rs:LL:COL
7
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
8
6
9
-
note: the above error was encountered while instantiating `fn std::mem::size_of::<S<S<()>>>`
10
-
--> $DIR/layout-cycle.rs:25:5
11
-
|
12
-
LL | mem::size_of::<S<T>>()
13
-
| ^^^^^^^^^^^^^^^^^^^^^^
7
+
error: failed to get layout for S<S<()>>: a cycle occurred during layout computation
14
8
15
-
error: aborting due to 1 previous error
9
+
error: aborting due to 2 previous errors
16
10
17
11
For more information about this error, try `rustc --explain E0391`.
0 commit comments