mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
e800b99347
Fixes #110453
11 lines
335 B
Rust
11 lines
335 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 fn dup(f: impl Fn(i32) -> i32) -> impl Fn(as_str) -> i32 {
|
|
//~^ ERROR cannot find type `as_str` in this scope
|
|
move |a| f(a * 2)
|
|
}
|