fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: function pointer calls are not allowed in statics 2 --> $DIR/const-fn-ptr.rs:5:19 3 | 4LL | static STAT: () = make_fn_ptr()(); 5 | ^^^^^^^^^^^^^^^ 6 7error: function pointer calls are not allowed in constants 8 --> $DIR/const-fn-ptr.rs:8:19 9 | 10LL | const CONST: () = make_fn_ptr()(); 11 | ^^^^^^^^^^^^^^^ 12 13error: function pointer calls are not allowed in constant functions 14 --> $DIR/const-fn-ptr.rs:12:5 15 | 16LL | make_fn_ptr()(); 17 | ^^^^^^^^^^^^^^^ 18 19error: aborting due to 3 previous errors 20