]> git.lizzy.rs Git - rust.git/blob - src/test/ui/recursion/issue-38591-non-regular-dropck-recursion.stderr
Rollup merge of #76867 - poliorcetics:intra-doc-core-iter, r=jyn514
[rust.git] / src / test / ui / recursion / issue-38591-non-regular-dropck-recursion.stderr
1 error: reached the recursion limit while instantiating `drop_in_place::<S<fn(fn(fn(fn(fn...)))))))))))))))))))))))))))))>))`
2   --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
3    |
4 LL | / pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
5 LL | |     // Code here does not matter - this is replaced by the
6 LL | |     // real drop glue by the compiler.
7 LL | |
8 LL | |     // SAFETY: see comment above
9 LL | |     unsafe { drop_in_place(to_drop) }
10 LL | | }
11    | |_^
12    |
13 note: `drop_in_place` defined here
14   --> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
15    |
16 LL | / pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
17 LL | |     // Code here does not matter - this is replaced by the
18 LL | |     // real drop glue by the compiler.
19 LL | |
20 LL | |     // SAFETY: see comment above
21 LL | |     unsafe { drop_in_place(to_drop) }
22 LL | | }
23    | |_^
24
25 error: aborting due to previous error
26