This repository has been archived by the owner on May 23, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
=== stdout === === stderr === error[E0521]: borrowed data escapes outside of function --> /home/runner/work/glacier/glacier/ices/107409.rs:22:5 | 21 | fn test<'gc>(t: Gc<'gc, i32>) { | --- - `t` is a reference that is only valid in the function body | | | lifetime `'gc` defined here 22 | reroot(t, |_| ()); | ^^^^^^^^^^^^^^^^^ | | | `t` escapes the function body here | argument requires that `'gc` must outlive `'static` | = note: requirement occurs because of the type `Gc<'_, i32>`, which makes the generic argument `'_` invariant = note: the struct `Gc<'gc, T>` is invariant over the parameter `'gc` = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance error: aborting due to previous error For more information about this error, try `rustc --explain E0521`. ==============
- Loading branch information