Skip to content

Commit

Permalink
Make old toolchains happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Voultapher committed Dec 20, 2023
1 parent 0d5daa1 commit b034f5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/self_cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ struct FnOnce<T> {
mod core {
pub mod ptr {
#[allow(dead_code)]
pub const unsafe fn read<T>(_src: *const T) -> T {
pub unsafe fn read<T>(_src: *const T) -> T {
panic!("Wrong ptr::read function called")
}
}
Expand Down

0 comments on commit b034f5e

Please sign in to comment.