Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ices/110453.rs: fixed with errors #1702

Merged
merged 1 commit into from Dec 13, 2023
Merged

ices/110453.rs: fixed with errors #1702

merged 1 commit into from Dec 13, 2023

Conversation

github-actions[bot]
Copy link
Contributor

Issue: rust-lang/rust#110453

pub struct B;
pub fn a() -> B {
    B
}

mod handlers {
    pub struct C(B);
    pub fn c() -> impl Fn() -> C {
        let a1 = ();
        || C((crate::a(), a1).into())
    }
}

fn main() {}
=== stdout ===
=== stderr ===
error[E0412]: cannot find type `B` in this scope
 --> /home/runner/work/glacier/glacier/ices/110453.rs:7:18
  |
7 |     pub struct C(B);
  |                  ^ not found in this scope
  |
help: consider importing this struct
  |
7 +     use crate::B;
  |

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0412`.
==============

=== stdout ===
=== stderr ===
error[E0412]: cannot find type `B` in this scope
 --> /home/runner/work/glacier/glacier/ices/110453.rs:7:18
  |
7 |     pub struct C(B);
  |                  ^ not found in this scope
  |
help: consider importing this struct
  |
7 +     use crate::B;
  |

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0412`.
==============
@JohnTitor JohnTitor merged commit afcf0a9 into master Dec 13, 2023
@JohnTitor JohnTitor deleted the autofix/ices/110453.rs branch December 13, 2023 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants