Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants