diff options
| author | Ralf Jung <post@ralfj.de> | 2020-08-12 10:18:21 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2020-08-12 11:14:49 +0200 |
| commit | fd32fe9bb9cc97a5a3d97ab0f6ab673d8c81fa88 (patch) | |
| tree | 58f97b7184903551d43407b9f56658d6fb44027c /src/test | |
| parent | a505e773a54bd40840e80e2038b0f634aed02c77 (diff) | |
| download | rust-fd32fe9bb9cc97a5a3d97ab0f6ab673d8c81fa88.tar.gz rust-fd32fe9bb9cc97a5a3d97ab0f6ab673d8c81fa88.zip | |
fix span of stack size error
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ui/consts/uninhabited-const-issue-61744.rs | 4 | ||||
| -rw-r--r-- | src/test/ui/consts/uninhabited-const-issue-61744.stderr | 9 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/test/ui/consts/uninhabited-const-issue-61744.rs b/src/test/ui/consts/uninhabited-const-issue-61744.rs index 55f42d84f9c..15436f9c1b2 100644 --- a/src/test/ui/consts/uninhabited-const-issue-61744.rs +++ b/src/test/ui/consts/uninhabited-const-issue-61744.rs @@ -1,11 +1,11 @@ // build-fail pub const unsafe fn fake_type<T>() -> T { - hint_unreachable() //~ ERROR evaluation of constant value failed + hint_unreachable() } pub const unsafe fn hint_unreachable() -> ! { - fake_type() + fake_type() //~ ERROR evaluation of constant value failed } trait Const { diff --git a/src/test/ui/consts/uninhabited-const-issue-61744.stderr b/src/test/ui/consts/uninhabited-const-issue-61744.stderr index fc908b2b222..024f9782d4a 100644 --- a/src/test/ui/consts/uninhabited-const-issue-61744.stderr +++ b/src/test/ui/consts/uninhabited-const-issue-61744.stderr @@ -1,11 +1,9 @@ error[E0080]: evaluation of constant value failed - --> $DIR/uninhabited-const-issue-61744.rs:4:5 + --> $DIR/uninhabited-const-issue-61744.rs:8:5 | LL | hint_unreachable() - | ^^^^^^^^^^^^^^^^^^ + | ------------------ | | - | reached the configured maximum number of stack frames - | inside `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:4:5 | inside `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:4:5 | inside `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:4:5 | inside `fake_type::<!>` at $DIR/uninhabited-const-issue-61744.rs:4:5 @@ -72,8 +70,9 @@ LL | hint_unreachable() | inside `fake_type::<i32>` at $DIR/uninhabited-const-issue-61744.rs:4:5 ... LL | fake_type() - | ----------- + | ^^^^^^^^^^^ | | + | reached the configured maximum number of stack frames | inside `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:8:5 | inside `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:8:5 | inside `hint_unreachable` at $DIR/uninhabited-const-issue-61744.rs:8:5 |
