summaryrefslogtreecommitdiffstats
path: root/tests/ui/intrinsics/const-eval-select-backtrace-std.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/intrinsics/const-eval-select-backtrace-std.rs')
-rw-r--r--tests/ui/intrinsics/const-eval-select-backtrace-std.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/intrinsics/const-eval-select-backtrace-std.rs b/tests/ui/intrinsics/const-eval-select-backtrace-std.rs
new file mode 100644
index 000000000..1164a3a5b
--- /dev/null
+++ b/tests/ui/intrinsics/const-eval-select-backtrace-std.rs
@@ -0,0 +1,7 @@
+// See issue #100696.
+// run-fail
+// check-run-results
+// exec-env:RUST_BACKTRACE=0
+fn main() {
+ &""[1..];
+}