mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 04:39:16 +00:00
e800b99347
Fixes #110453
19 lines
422 B
Rust
19 lines
422 B
Rust
// ICE in mir building with captured value of unresolved type
|
|
// None in compiler/rustc_mir_build/src/build/expr/as_place.rs
|
|
// issue: rust-lang/rust#110453
|
|
//@ edition:2021
|
|
|
|
#![crate_type="lib"]
|
|
|
|
pub struct B;
|
|
pub fn a() -> B { B }
|
|
|
|
mod handlers {
|
|
pub struct C(B);
|
|
//~^ ERROR cannot find type `B` in this scope
|
|
pub fn c() -> impl Fn() -> C {
|
|
let a1 = ();
|
|
|| C((crate::a(), a1).into())
|
|
}
|
|
}
|