forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#106172 - estebank:suggest-impl-trait, r=com…
…piler-errors Suggest `impl Iterator` when possible for `_` return type Address rust-lang#106096.
- Loading branch information
Showing
7 changed files
with
101 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -213,6 +213,7 @@ symbols! { | |
Is, | ||
ItemContext, | ||
Iterator, | ||
IteratorItem, | ||
Layout, | ||
Left, | ||
LinkedList, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ error[E0121]: the placeholder `_` is not allowed within types on item signatures | |
LL | const C: _ = || 42; | ||
| ^ not allowed in type signatures | ||
| | ||
note: however, the inferred type `[closure@$DIR/unnamable-types.rs:17:14: 17:16]` cannot be named | ||
note: however, the inferred type `[[email protected]:17:14]` cannot be named | ||
--> $DIR/unnamable-types.rs:17:14 | ||
| | ||
LL | const C: _ = || 42; | ||
|
@@ -31,7 +31,7 @@ error: missing type for `const` item | |
LL | const D = S { t: { let i = 0; move || -> i32 { i } } }; | ||
| ^ | ||
| | ||
note: however, the inferred type `S<[closure@$DIR/unnamable-types.rs:23:31: 23:45]>` cannot be named | ||
note: however, the inferred type `S<[[email protected]:23:31]>` cannot be named | ||
--> $DIR/unnamable-types.rs:23:11 | ||
| | ||
LL | const D = S { t: { let i = 0; move || -> i32 { i } } }; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters