]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-fn-ptr.stderr
Rollup merge of #106949 - compiler-errors:is-poly, r=BoxyUwU
[rust.git] / tests / ui / consts / const-fn-ptr.stderr
1 error: function pointer calls are not allowed in statics
2   --> $DIR/const-fn-ptr.rs:5:19
3    |
4 LL | static STAT: () = make_fn_ptr()();
5    |                   ^^^^^^^^^^^^^^^
6
7 error: function pointer calls are not allowed in constants
8   --> $DIR/const-fn-ptr.rs:8:19
9    |
10 LL | const CONST: () = make_fn_ptr()();
11    |                   ^^^^^^^^^^^^^^^
12
13 error: function pointer calls are not allowed in constant functions
14   --> $DIR/const-fn-ptr.rs:12:5
15    |
16 LL |     make_fn_ptr()();
17    |     ^^^^^^^^^^^^^^^
18
19 error: aborting due to 3 previous errors
20