diff options
| author | Folkert de Vries <folkert@folkertdev.nl> | 2024-08-29 15:33:34 +0200 |
|---|---|---|
| committer | Folkert de Vries <folkert@folkertdev.nl> | 2024-09-14 18:07:06 +0200 |
| commit | a528f4ecd99cd5e1fb4454fc383688eccd4e34e1 (patch) | |
| tree | 82359969ac2cc38b23170b3218a675a27860f4a0 /tests/ui/consts/const-eval | |
| parent | 02b1be16c65e5716ade771afde7116ebdfbf9b4a (diff) | |
| download | rust-a528f4ecd99cd5e1fb4454fc383688eccd4e34e1.tar.gz rust-a528f4ecd99cd5e1fb4454fc383688eccd4e34e1.zip | |
stabilize `const_extern_fn`
Diffstat (limited to 'tests/ui/consts/const-eval')
| -rw-r--r-- | tests/ui/consts/const-eval/unwind-abort.rs | 2 | ||||
| -rw-r--r-- | tests/ui/consts/const-eval/unwind-abort.stderr | 8 |
2 files changed, 4 insertions, 6 deletions
diff --git a/tests/ui/consts/const-eval/unwind-abort.rs b/tests/ui/consts/const-eval/unwind-abort.rs index 26113e23888..8d5ed876e43 100644 --- a/tests/ui/consts/const-eval/unwind-abort.rs +++ b/tests/ui/consts/const-eval/unwind-abort.rs @@ -1,5 +1,3 @@ -#![feature(const_extern_fn)] - const extern "C" fn foo() { panic!() //~ ERROR evaluation of constant value failed } diff --git a/tests/ui/consts/const-eval/unwind-abort.stderr b/tests/ui/consts/const-eval/unwind-abort.stderr index d7330beca7b..340f1dbe841 100644 --- a/tests/ui/consts/const-eval/unwind-abort.stderr +++ b/tests/ui/consts/const-eval/unwind-abort.stderr @@ -1,16 +1,16 @@ error[E0080]: evaluation of constant value failed - --> $DIR/unwind-abort.rs:4:5 + --> $DIR/unwind-abort.rs:2:5 | LL | panic!() - | ^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/unwind-abort.rs:4:5 + | ^^^^^^^^ the evaluated program panicked at 'explicit panic', $DIR/unwind-abort.rs:2:5 | note: inside `foo` - --> $DIR/unwind-abort.rs:4:5 + --> $DIR/unwind-abort.rs:2:5 | LL | panic!() | ^^^^^^^^ note: inside `_` - --> $DIR/unwind-abort.rs:7:15 + --> $DIR/unwind-abort.rs:5:15 | LL | const _: () = foo(); | ^^^^^ |
