mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Fix format and bless test
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user