Skip to content

Commit 11ad6fe

Browse files
committed
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.
2 parents 14bfdfd + ac321a7 commit 11ad6fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustc/diagnostics.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1618,8 +1618,7 @@ fn cookie() -> ! { // error: definition of an unknown language item: `cookie`
16181618
"##,
16191619

16201620
E0525: r##"
1621-
A closure was attempted to get used whereas it doesn't implement the expected
1622-
trait.
1621+
A closure was used but didn't implement the expected trait.
16231622
16241623
Erroneous code example:
16251624

0 commit comments

Comments
 (0)