Fix format and bless test

This commit is contained in:
Redddy
2026-04-07 15:53:03 +00:00
parent 70af5cf2a3
commit df2fe313d4
3 changed files with 10 additions and 10 deletions
@@ -1,5 +1,5 @@
fn main() {
match *1 { //~ ERROR: cannot be dereferenced
_ => { panic!(); }
}
match *1 { //~ ERROR: cannot be dereferenced
_ => {}
}
}
@@ -1,8 +1,8 @@
error[E0614]: type `{integer}` cannot be dereferenced
--> $DIR/deref-non-pointer.rs:2:9
--> $DIR/deref-non-pointer.rs:2:11
|
LL | match *1 {
| ^^ can't be dereferenced
LL | match *1 {
| ^^ can't be dereferenced
error: aborting due to 1 previous error
@@ -1,5 +1,5 @@
error[E0308]: mismatched types
--> $DIR/issue-71676-1.rs:43:24
--> $DIR/deref-pointer-cast-mutability-71676.rs:43:24
|
LL | let _: *const u8 = &a;
| --------- ^^ expected `*const u8`, found `&Emm`
@@ -14,7 +14,7 @@ LL | let _: *const u8 = &***a;
| +++
error[E0308]: mismatched types
--> $DIR/issue-71676-1.rs:46:22
--> $DIR/deref-pointer-cast-mutability-71676.rs:46:22
|
LL | let _: *mut u8 = &a;
| ------- ^^ types differ in mutability
@@ -29,7 +29,7 @@ LL | let _: *mut u8 = &mut ***a;
| +++++++
error[E0308]: mismatched types
--> $DIR/issue-71676-1.rs:49:24
--> $DIR/deref-pointer-cast-mutability-71676.rs:49:24
|
LL | let _: *const u8 = &mut a;
| --------- ^^^^^^ expected `*const u8`, found `&mut Emm`
@@ -45,7 +45,7 @@ LL + let _: *const u8 = &***a;
|
error[E0308]: mismatched types
--> $DIR/issue-71676-1.rs:52:22
--> $DIR/deref-pointer-cast-mutability-71676.rs:52:22
|
LL | let _: *mut u8 = &mut a;
| ------- ^^^^^^ expected `*mut u8`, found `&mut Emm`