]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/polymorphization/closure_in_upvar/fnmut.rs
2 // compile-flags:-Zpolymorphize=on -Csymbol-mangling-version=v0
5 // Mutate an upvar from `x` so that it implements `FnMut`.
12 // Don't use `f` in `y`, but refer to `x` so that the closure substs contain a reference to
13 // `x` that will differ for each instantiation despite polymorphisation of the varying
17 // Consider `f` used in `foo`.
19 // Use `y` so that it is visited in monomorphisation collection.