Skip to content

Commit

Permalink
Add test for issue #54966
Browse files Browse the repository at this point in the history
Closes #54966
  • Loading branch information
memoryruins committed Oct 12, 2018
1 parent e9e27e6 commit 146fbc6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/ui/issues/issue-54966.rs
@@ -0,0 +1,6 @@
// 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() {}
9 changes: 9 additions & 0 deletions 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

error: aborting due to previous error

For more information about this error, try `rustc --explain E0412`.

0 comments on commit 146fbc6

Please sign in to comment.