summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/auxiliary/cci_const_block.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/auxiliary/cci_const_block.rs')
-rw-r--r--tests/ui/consts/auxiliary/cci_const_block.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/consts/auxiliary/cci_const_block.rs b/tests/ui/consts/auxiliary/cci_const_block.rs
new file mode 100644
index 000000000..ad618aab8
--- /dev/null
+++ b/tests/ui/consts/auxiliary/cci_const_block.rs
@@ -0,0 +1,6 @@
+pub static BLOCK_FN_DEF: fn(usize) -> usize = {
+ fn foo(a: usize) -> usize {
+ a + 10
+ }
+ foo
+};