Auto merge of #39072 - radix:patch-1, r=GuillaumeGomez

Minor improvement to strange grammar in E0525

Hi, I just ran into this error from rustc, and it had some strange grammar, so I cleaned it up a bit.
This commit is contained in:
bors 2017-01-16 11:17:34 +00:00
commit 11ad6fe52a

View file

@ -1618,8 +1618,7 @@ fn cookie() -> ! { // error: definition of an unknown language item: `cookie`
"##,
E0525: r##"
A closure was attempted to get used whereas it doesn't implement the expected
trait.
A closure was used but didn't implement the expected trait.
Erroneous code example: