1 #![feature(generators)]
3 // Test for issue #47189. Here, both `s` and `t` are live for the
4 // generator's lifetime, but within the generator they have distinct
5 // lifetimes. We accept this code -- even though the borrow extends
6 // over a yield -- because the data that is borrowed (`*x`) is not
7 // stored on the stack.