Skip to content

Commit 146fbc6

Browse files
committed
Add test for issue rust-lang#54966
Closes rust-lang#54966
1 parent e9e27e6 commit 146fbc6

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/test/ui/issues/issue-54966.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0412]: cannot find type `Oper` in this scope
2+
--> $DIR/issue-54966.rs:3:27
3+
|
4+
LL | fn generate_duration() -> Oper<impl FnMut()> {}
5+
| ^^^^ not found in this scope
6+
7+
error: aborting due to previous error
8+
9+
For more information about this error, try `rustc --explain E0412`.

0 commit comments

Comments
 (0)