We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2d4ca1 commit b440a7cCopy full SHA for b440a7c
test/empty_string_slice.rs
@@ -0,0 +1,4 @@
1
+pub fn main(){
2
+ let slice = "";
3
+ std::hint::black_box(slice);
4
+}
test/fn_ptr.rs
@@ -0,0 +1,17 @@
+#[allow(improper_ctypes_definitions)]
+#[no_mangle]
+pub extern fn test_fn(a:fn (i32)->i32)->fn (i32)->i32{
+ a
5
6
7
8
+pub extern fn test_fn2(a:i32)->i32{
9
10
11
12
13
+pub extern fn return_fn()->fn (i32)->i32{
14
+ fn simple(a:i32)->i32{a}
15
+ simple
16
17
+
0 commit comments