builtin: fix recent cast warning for tests for map (fix compilation with -prod or -W) (#24532)

This commit is contained in:
Laurent Cheylus 2025-05-21 05:04:33 +02:00 committed by GitHub
parent 11ee29c3cf
commit 89fae6096a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -222,8 +222,8 @@ fn test_various_map_value() {
m17['test'] = u64(0)
assert m17['test'] == u64(0)
mut m18 := map[string]&int{}
m18['test'] = &int(0)
assert unsafe { m18['test'] } == &int(0)
m18['test'] = &int(unsafe { nil })
assert unsafe { m18['test'] } == &int(unsafe { nil })
}
fn test_string_arr() {