Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
(removing confusing comment from my test, since the comment reflects the bad undesirable behavior that is being fixed here.)
  • Loading branch information
pnkfelix committed May 21, 2021
1 parent 4742bbb commit 0d073c9
Showing 1 changed file with 0 additions and 3 deletions.
Expand Up @@ -15,9 +15,6 @@ fn main() {
let u8_ptr: *const u8 = &val;
let _closure = || {
unsafe {
// Fails compilation with:
// error[E0133]: dereference of raw pointer is unsafe and
// requires unsafe function or block
let tmp = *u8_ptr;
tmp

Expand Down

0 comments on commit 0d073c9

Please sign in to comment.