Skip to content

Commit be2698c

Browse files
Fix test fallout
1 parent 298b51e commit be2698c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/compile-fail/cast-rfc0401.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ fn main()
8787
//~^^ HELP through a usize first
8888

8989
let _ = 42usize as *const [u8]; //~ ERROR casting
90-
let _ = v as *const [u8]; //~ ERROR casting
90+
let _ = v as *const [u8]; //~ ERROR cannot cast
9191
let _ = fat_v as *const Foo;
9292
//~^ ERROR `core::marker::Sized` is not implemented for the type `[u8]`
9393
let _ = foo as *const str; //~ ERROR casting

src/test/compile-fail/fat-ptr-cast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fn main() {
2424
//~^^ HELP cast through a thin pointer
2525

2626
// #22955
27-
q as *const [i32]; //~ ERROR casting
27+
q as *const [i32]; //~ ERROR cannot cast
2828

2929
// #21397
3030
let t: *mut (Trait + 'static) = 0 as *mut _; //~ ERROR casting

0 commit comments

Comments
 (0)