fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
591 B26 linesraw
1warning: skipping const checks
2  --> $DIR/const_fn_ptr.rs:12:5
3   |
4LL |     X(x)
5   |     ^^^^
6
7warning: skipping const checks
8  --> $DIR/const_fn_ptr.rs:16:5
9   |
10LL |     X_const(x)
11   |     ^^^^^^^^^^
12
13warning: skipping const checks
14  --> $DIR/const_fn_ptr.rs:20:5
15   |
16LL |     x(y)
17   |     ^^^^
18
19warning: constant `X_const` should have an upper case name
20  --> $DIR/const_fn_ptr.rs:9:7
21   |
22LL | const X_const: fn(usize) -> usize = double_const;
23   |       ^^^^^^^ help: convert the identifier to upper case: `X_CONST`
24   |
25   = note: `#[warn(non_upper_case_globals)]` on by default
26