fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
2.3 KiB57 linesraw
1error[E0658]: `const extern fn` definitions are unstable
2  --> $DIR/feature-gate-const_extern_fn.rs:3:1
3   |
4LL | const extern fn foo1() {}
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: see issue #64926 <https://github.com/rust-lang/rust/issues/64926> for more information
8   = help: add `#![feature(const_extern_fn)]` to the crate attributes to enable
9
10error[E0658]: `const extern fn` definitions are unstable
11  --> $DIR/feature-gate-const_extern_fn.rs:4:1
12   |
13LL | const extern "C" fn foo2() {}
14   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15   |
16   = note: see issue #64926 <https://github.com/rust-lang/rust/issues/64926> for more information
17   = help: add `#![feature(const_extern_fn)]` to the crate attributes to enable
18
19error[E0658]: `const extern fn` definitions are unstable
20  --> $DIR/feature-gate-const_extern_fn.rs:5:1
21   |
22LL | const extern "Rust" fn foo3() {}
23   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24   |
25   = note: see issue #64926 <https://github.com/rust-lang/rust/issues/64926> for more information
26   = help: add `#![feature(const_extern_fn)]` to the crate attributes to enable
27
28error[E0658]: `const extern fn` definitions are unstable
29  --> $DIR/feature-gate-const_extern_fn.rs:6:1
30   |
31LL | const unsafe extern fn bar1() {}
32   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33   |
34   = note: see issue #64926 <https://github.com/rust-lang/rust/issues/64926> for more information
35   = help: add `#![feature(const_extern_fn)]` to the crate attributes to enable
36
37error[E0658]: `const extern fn` definitions are unstable
38  --> $DIR/feature-gate-const_extern_fn.rs:7:1
39   |
40LL | const unsafe extern "C" fn bar2() {}
41   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42   |
43   = note: see issue #64926 <https://github.com/rust-lang/rust/issues/64926> for more information
44   = help: add `#![feature(const_extern_fn)]` to the crate attributes to enable
45
46error[E0658]: `const extern fn` definitions are unstable
47  --> $DIR/feature-gate-const_extern_fn.rs:8:1
48   |
49LL | const unsafe extern "Rust" fn bar3() {}
50   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51   |
52   = note: see issue #64926 <https://github.com/rust-lang/rust/issues/64926> for more information
53   = help: add `#![feature(const_extern_fn)]` to the crate attributes to enable
54
55error: aborting due to 6 previous errors
56
57For more information about this error, try `rustc --explain E0658`.