1\version "2.17.6"
2\header {
3
4  texidoc = "
5Rests should not keep staves alive when
6@code{\\RemoveEmptyStaffContext} is active.  The
7following example should have only one staff.
8"
9
10}
11
12\score {
13 <<
14   \new Staff {
15     \partial 16 r16 | R1 | r1
16   }
17   \new Staff {
18     \partial 16 c'16 | c'1 | c'1
19   }
20 >>
21
22 \layout { \context { \RemoveEmptyStaffContext
23     \override VerticalAxisGroup.remove-first = ##t } }
24}
25