mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2026-04-17 21:24:52 +00:00
fix: use compound assignment in binop_lhs_never_place_diverges test
This commit is contained in:
@@ -826,8 +826,7 @@ fn binop_lhs_never_place_diverges() {
|
||||
fn foo() {
|
||||
unsafe {
|
||||
let p: *mut ! = 0 as _;
|
||||
*p + 1;
|
||||
// ^^ adjustments: NeverToAny
|
||||
*p += 1;
|
||||
}
|
||||
}
|
||||
"#,
|
||||
|
||||
Reference in New Issue
Block a user