Make destructuring trait reference work

Closes #15031.