2 // compile-flags:-Zpolymorphize=on -Zsymbol-mangling-version=v0
5 // Move a non-copy type into `x` so that it implements `FnOnce`.
6 let outer = Vec::<u32>::new();
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.