]> git.lizzy.rs Git - rust.git/commitdiff
call error location was fixed by rustup
authorRalf Jung <post@ralfj.de>
Sat, 21 Mar 2020 11:52:23 +0000 (12:52 +0100)
committerRalf Jung <post@ralfj.de>
Sat, 21 Mar 2020 11:52:23 +0000 (12:52 +0100)
rust-version
tests/compile-fail/cast_fn_ptr1.rs
tests/compile-fail/cast_fn_ptr5.rs

index ca9c782d127aefb663aef17d6dd0c409c44451c7..aaf176861b0db3636900a8e9997a857b4c2b697a 100644 (file)
@@ -1 +1 @@
-f4c675c476c18b1a11041193f2f59d695b126bc8
+98803c182b2ba6ef5dccb6bf501958249295eac0
index 057cc64e9e3bc1f7ca6521fe9eee1beb2e5162d5..3702ec8c94c4372f932e39a1b9d5e98518c0541e 100644 (file)
@@ -1,9 +1,9 @@
 fn main() {
-    fn f() {} //~ ERROR calling a function with more arguments than it expected
+    fn f() {}
 
     let g = unsafe {
         std::mem::transmute::<fn(), fn(i32)>(f)
     };
 
-    g(42)
+    g(42) //~ ERROR calling a function with more arguments than it expected
 }
index ff2a73d5a48594870daa17ca55671c89aff5b973..fb2b4403363ef22e4389c0891cc830ddf5bddb3d 100644 (file)
@@ -1,9 +1,9 @@
 fn main() {
-    fn f() -> u32 { 42 } //~ ERROR calling a function with return type u32 passing return place of type ()
+    fn f() -> u32 { 42 }
 
     let g = unsafe {
         std::mem::transmute::<fn() -> u32, fn()>(f)
     };
 
-    g()
+    g() //~ ERROR calling a function with return type u32 passing return place of type ()
 }