Forbid ~str and ~[]

This corrects a rebasing error. Also adds a test so it won't happen again.
auto merge of #16809 : nick29581/rust/dst-bug-3, r=alexcrichton

This corrects a rebasing error. Also adds a test so it won't happen again.

r?