rust/tests/ui/impl-trait/issue-54966.rs
2023-01-11 09:32:08 +00:00

7 lines
174 B
Rust

// issue-54966: ICE returning an unknown type with impl FnMut
fn generate_duration() -> Oper<impl FnMut()> {}
//~^ ERROR cannot find type `Oper` in this scope
fn main() {}