parent
e9e27e6a62
commit
146fbc6a96
2 changed files with 15 additions and 0 deletions
6
src/test/ui/issues/issue-54966.rs
Normal file
6
src/test/ui/issues/issue-54966.rs
Normal 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() {}
|
9
src/test/ui/issues/issue-54966.stderr
Normal file
9
src/test/ui/issues/issue-54966.stderr
Normal 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`.
|
Loading…
Add table
Add a link
Reference in a new issue