Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
ices/107409.rs: fixed with errors
Browse files Browse the repository at this point in the history
=== 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
rustbot committed Nov 18, 2023
1 parent e2ee870 commit 6f76835
Showing 1 changed file with 0 additions and 0 deletions.
File renamed without changes.

0 comments on commit 6f76835

Please sign in to comment.