Add test for issue #54966

Closes #54966
This commit is contained in:
memoryruins 2018-10-12 12:42:33 -04:00
parent e9e27e6a62
commit 146fbc6a96
2 changed files with 15 additions and 0 deletions

View File

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

View File

@ -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`.