Skip to content

Commit c41285f

Browse files
committed
oops: semantics of repeat expr in array is the same
1 parent fdec2a4 commit c41285f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ui/deref_addrof.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ fn main() {
4444

4545
let _ = unsafe { *core::ptr::addr_of!(a) };
4646

47-
// do NOT lint for array as sematic differences with/out `*&`.
4847
let _repeat = *&[0; 64];
48+
// do NOT lint for array as sematic differences with/out `*&`.
4949
let _arr = *&[0, 1, 2, 3, 4];
5050
}
5151

0 commit comments

Comments
 (0)