fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
549 B20 linesraw
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