We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9e27e6 commit 146fbc6Copy full SHA for 146fbc6
src/test/ui/issues/issue-54966.rs
@@ -0,0 +1,6 @@
1
+// issue-54966: ICE returning an unknown type with impl FnMut
2
+
3
+fn generate_duration() -> Oper<impl FnMut()> {}
4
+//~^ ERROR cannot find type `Oper` in this scope
5
6
+fn main() {}
src/test/ui/issues/issue-54966.stderr
@@ -0,0 +1,9 @@
+error[E0412]: cannot find type `Oper` in this scope
+ --> $DIR/issue-54966.rs:3:27
+ |
+LL | fn generate_duration() -> Oper<impl FnMut()> {}
+ | ^^^^ not found in this scope
7
+error: aborting due to previous error
8
9
+For more information about this error, try `rustc --explain E0412`.
0 commit comments