test added here https://github.com/mozilla/rust/pull/9318/files#diff-998a059252a90f32c0986d7f26cf8430L-1