Add regression test for #89432

Co-authored-by: Josh Stone <cuviper@gmail.com>
This commit is contained in:
Albin Hedman 2021-10-02 01:12:15 +02:00
parent 81bb5a54c3
commit 6a0c97aa5c
No known key found for this signature in database
GPG key ID: 1F501ECD1BBD70A7

View file

@ -0,0 +1,9 @@
// run-pass
const _FOO: fn() -> String = || "foo".into();
pub fn bar() -> fn() -> String {
|| "bar".into()
}
fn main(){}