Add a test case for issue 18906

Closes issue #18906. This is what we talked about last night/early this morning. r? @nikomatsakis.