Add regression test for #89432
Co-authored-by: Josh Stone <cuviper@gmail.com>
This commit is contained in:
parent
81bb5a54c3
commit
6a0c97aa5c
9
src/test/ui/consts/not_const_clusure_in_const.rs
Normal file
9
src/test/ui/consts/not_const_clusure_in_const.rs
Normal file
@ -0,0 +1,9 @@
|
||||
// run-pass
|
||||
|
||||
const _FOO: fn() -> String = || "foo".into();
|
||||
|
||||
pub fn bar() -> fn() -> String {
|
||||
|| "bar".into()
|
||||
}
|
||||
|
||||
fn main(){}
|
Loading…
x
Reference in New Issue
Block a user