mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 11:53:44 +00:00
parent
e9e27e6a62
commit
146fbc6a96
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…
Reference in New Issue
Block a user