From b034f5e1886c30bbec15add644d84220c03bb834 Mon Sep 17 00:00:00 2001 From: Lukas Bergdoll Date: Mon, 18 Dec 2023 11:54:20 +0100 Subject: [PATCH] Make old toolchains happy --- tests/self_cell.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/self_cell.rs b/tests/self_cell.rs index bd7712e..f7a2338 100644 --- a/tests/self_cell.rs +++ b/tests/self_cell.rs @@ -94,7 +94,7 @@ struct FnOnce { mod core { pub mod ptr { #[allow(dead_code)] - pub const unsafe fn read(_src: *const T) -> T { + pub unsafe fn read(_src: *const T) -> T { panic!("Wrong ptr::read function called") } }