Just like this:
This is a Piano Staff, the example was created on MuseScore.
The \laissezVibrer
slur only creates a small slur.
I don't mind whether the slur crosses the measure or not, I just don't want it to be that short.
This is LilyPond's Engraving:
Also, as they're two voices, in LilyPond the last two rests appear above the default position in both staves. But they're written on a single line as << { } \\ { } >>
and I don't know how to make the second voice disappear after that bar so the rest goes back to the default position.