Skip to content

Commit

Permalink
Auto merge of rust-lang#39072 - radix:patch-1, r=GuillaumeGomez
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Jan 16, 2017
2 parents 14bfdfd + ac321a7 commit 11ad6fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/librustc/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 11ad6fe

Please sign in to comment.