We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca2ac60 commit f79ca80Copy full SHA for f79ca80
src/test/compile-fail/issue-22034.rs
@@ -14,6 +14,6 @@ fn main() {
14
let foo: *mut libc::c_void;
15
let cb: &mut Fn() = unsafe {
16
&mut *(foo as *mut Fn())
17
- //~^ ERROR use of possibly uninitialized variable: `foo`
+ //~^ ERROR illegal cast
18
};
19
}
src/test/compile-fail/issue-22289.rs
@@ -9,5 +9,5 @@
9
// except according to those terms.
10
11
fn main() {
12
- 0 as &std::any::Any; //~ ERROR non-scalar cast: `i32` as `&core::any::Any`
+ 0 as &std::any::Any; //~ ERROR illegal cast
13
0 commit comments