rust/tests/ui/impl-trait/issue-54966.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
174 B
Rust
Raw Normal View History

// 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() {}