]> git.lizzy.rs Git - rust.git/commitdiff
Minor improvement to strange grammar in E0525
authorChristopher Armstrong <radix@twistedmatrix.com>
Sun, 15 Jan 2017 00:59:33 +0000 (18:59 -0600)
committerGitHub <noreply@github.com>
Sun, 15 Jan 2017 00:59:33 +0000 (18:59 -0600)
src/librustc/diagnostics.rs

index 1655c716b6bfa59dac2c36c52420a055b115e29d..2efd43c421636b0c749f09539c45aa55564401f8 100644 (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 where it didn't implement the expected trait.
 
 Erroneous code example: