diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-10-04 12:31:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-04 12:31:26 +0200 |
| commit | 65577da49cb7b7db1cc9b3aa8a4790d8d46349d2 (patch) | |
| tree | c40d6a461b67f55088ac7ffcafa68569baf8dd83 /tests/ui/consts/std/conjure_zst.stderr | |
| parent | eb8e240de97e27807e1079239024c888968e2453 (diff) | |
| parent | a9ab29cdb45005d69738c3a7cbec4c5cd0fceb73 (diff) | |
| download | rust-65577da49cb7b7db1cc9b3aa8a4790d8d46349d2.tar.gz rust-65577da49cb7b7db1cc9b3aa8a4790d8d46349d2.zip | |
Rollup merge of #146479 - Qelxiros:mem_conjure_zst, r=scottmcm,tgross35
add mem::conjure_zst Tracking issue: rust-lang/rust#95383
Diffstat (limited to 'tests/ui/consts/std/conjure_zst.stderr')
| -rw-r--r-- | tests/ui/consts/std/conjure_zst.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/consts/std/conjure_zst.stderr b/tests/ui/consts/std/conjure_zst.stderr new file mode 100644 index 00000000000..0c4a978b81e --- /dev/null +++ b/tests/ui/consts/std/conjure_zst.stderr @@ -0,0 +1,12 @@ +error[E0080]: evaluation panicked: aborted execution: attempted to instantiate uninhabited type `Infallible` + --> $DIR/conjure_zst.rs:5:38 + | +LL | const INVALID: Infallible = unsafe { mem::conjure_zst() }; + | ^^^^^^^^^^^^^^^^^^ evaluation of `INVALID` failed inside this call + | +note: inside `conjure_zst::<Infallible>` + --> $SRC_DIR/core/src/mem/mod.rs:LL:COL + +error: aborting due to 1 previous error + +For more information about this error, try `rustc --explain E0080`. |
