rust/src/test/ui/impl-trait/issue-72911.stderr

35 lines
1.8 KiB
Plaintext
Raw Normal View History

2020-08-27 07:27:14 -05:00
error[E0433]: failed to resolve: use of undeclared crate or module `foo`
2020-07-26 04:54:54 -05:00
--> $DIR/issue-72911.rs:12:33
|
LL | fn gather_from_file(dir_entry: &foo::MissingItem) -> impl Iterator<Item = Lint> {
2020-08-27 07:27:14 -05:00
| ^^^ use of undeclared crate or module `foo`
2020-07-26 04:54:54 -05:00
2020-08-27 07:27:14 -05:00
error[E0433]: failed to resolve: use of undeclared crate or module `foo`
2020-07-26 04:54:54 -05:00
--> $DIR/issue-72911.rs:17:41
|
LL | fn lint_files() -> impl Iterator<Item = foo::MissingItem> {
2020-08-27 07:27:14 -05:00
| ^^^ use of undeclared crate or module `foo`
2020-07-26 04:54:54 -05:00
error[E0720]: cannot resolve opaque type
--> $DIR/issue-72911.rs:7:24
|
LL | pub fn gather_all() -> impl Iterator<Item = Lint> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ recursive opaque type
LL |
LL | lint_files().flat_map(|f| gather_from_file(&f))
| -----------------------------------------------
| |
| returning here with type `FlatMap<impl Iterator, [type error], [closure@$DIR/issue-72911.rs:9:27: 9:51]>`
| returning here with type `FlatMap<impl Iterator, [type error], [closure@$DIR/issue-72911.rs:9:27: 9:51]>`
2020-07-26 04:54:54 -05:00
...
LL | fn gather_from_file(dir_entry: &foo::MissingItem) -> impl Iterator<Item = Lint> {
| -------------------------- returning this opaque type `FlatMap<impl Iterator, [type error], [closure@$DIR/issue-72911.rs:9:27: 9:51]>`
2020-07-26 04:54:54 -05:00
...
LL | fn lint_files() -> impl Iterator<Item = foo::MissingItem> {
| -------------------------------------- returning this opaque type `FlatMap<impl Iterator, [type error], [closure@$DIR/issue-72911.rs:9:27: 9:51]>`
2020-07-26 04:54:54 -05:00
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0433, E0720.
For more information about an error, try `rustc --explain E0433`.