fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
792 B18 linesraw
1error: expected `fn`, found `PUT_ANYTHING_YOU_WANT_HERE`
2  --> $DIR/issue-68062-const-extern-fns-dont-need-fn-specifier.rs:5:25
3   |
4LL |     const extern "Rust" PUT_ANYTHING_YOU_WANT_HERE bug() -> usize { 1 }
5   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `fn`
6
7error[E0658]: `const extern fn` definitions are unstable
8  --> $DIR/issue-68062-const-extern-fns-dont-need-fn-specifier.rs:5:5
9   |
10LL |     const extern "Rust" PUT_ANYTHING_YOU_WANT_HERE bug() -> usize { 1 }
11   |     ^^^^^^^^^^^^
12   |
13   = note: for more information, see https://github.com/rust-lang/rust/issues/64926
14   = help: add `#![feature(const_extern_fn)]` to the crate attributes to enable
15
16error: aborting due to 2 previous errors
17
18For more information about this error, try `rustc --explain E0658`.