summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/offset_from_ub.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/offset_from_ub.rs')
-rw-r--r--src/test/ui/consts/offset_from_ub.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/consts/offset_from_ub.rs b/src/test/ui/consts/offset_from_ub.rs
index 1f29a6905..51163e650 100644
--- a/src/test/ui/consts/offset_from_ub.rs
+++ b/src/test/ui/consts/offset_from_ub.rs
@@ -1,4 +1,4 @@
-#![feature(const_ptr_offset_from)]
+#![feature(const_ptr_sub_ptr)]
#![feature(core_intrinsics)]
use std::intrinsics::{ptr_offset_from, ptr_offset_from_unsigned};