We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 298b51e commit be2698cCopy full SHA for be2698c
src/test/compile-fail/cast-rfc0401.rs
@@ -87,7 +87,7 @@ fn main()
87
//~^^ HELP through a usize first
88
89
let _ = 42usize as *const [u8]; //~ ERROR casting
90
- let _ = v as *const [u8]; //~ ERROR casting
+ let _ = v as *const [u8]; //~ ERROR cannot cast
91
let _ = fat_v as *const Foo;
92
//~^ ERROR `core::marker::Sized` is not implemented for the type `[u8]`
93
let _ = foo as *const str; //~ ERROR casting
src/test/compile-fail/fat-ptr-cast.rs
@@ -24,7 +24,7 @@ fn main() {
24
//~^^ HELP cast through a thin pointer
25
26
// #22955
27
- q as *const [i32]; //~ ERROR casting
+ q as *const [i32]; //~ ERROR cannot cast
28
29
// #21397
30
let t: *mut (Trait + 'static) = 0 as *mut _; //~ ERROR casting
0 commit comments