Skip to content

Commit 6a0c97a

Browse files
usbalbincuviper
andcommitted
Add regression test for rust-lang#89432
Co-authored-by: Josh Stone <[email protected]>
1 parent 81bb5a5 commit 6a0c97a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// run-pass
2+
3+
const _FOO: fn() -> String = || "foo".into();
4+
5+
pub fn bar() -> fn() -> String {
6+
|| "bar".into()
7+
}
8+
9+
fn main(){}

0 commit comments

Comments
 (0)