Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 0d073c9

Browse files
authored
Apply suggestions from code review
(removing confusing comment from my test, since the comment reflects the bad undesirable behavior that is being fixed here.)
1 parent 4742bbb commit 0d073c9

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/test/ui/unsafe/issue-85435-unsafe-op-in-let-under-unsafe-under-closure.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ fn main() {
1515
let u8_ptr: *const u8 = &val;
1616
let _closure = || {
1717
unsafe {
18-
// Fails compilation with:
19-
// error[E0133]: dereference of raw pointer is unsafe and
20-
// requires unsafe function or block
2118
let tmp = *u8_ptr;
2219
tmp
2320

0 commit comments

Comments
 (0)