From e890d4d5e11c97be0769df0cb1593394e8a9f8c6 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 21 Mar 2020 12:52:23 +0100 Subject: [PATCH] call error location was fixed by rustup --- rust-version | 2 +- tests/compile-fail/cast_fn_ptr1.rs | 4 ++-- tests/compile-fail/cast_fn_ptr5.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rust-version b/rust-version index ca9c782d127..aaf176861b0 100644 --- a/rust-version +++ b/rust-version @@ -1 +1 @@ -f4c675c476c18b1a11041193f2f59d695b126bc8 +98803c182b2ba6ef5dccb6bf501958249295eac0 diff --git a/tests/compile-fail/cast_fn_ptr1.rs b/tests/compile-fail/cast_fn_ptr1.rs index 057cc64e9e3..3702ec8c94c 100644 --- a/tests/compile-fail/cast_fn_ptr1.rs +++ b/tests/compile-fail/cast_fn_ptr1.rs @@ -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::(f) }; - g(42) + g(42) //~ ERROR calling a function with more arguments than it expected } diff --git a/tests/compile-fail/cast_fn_ptr5.rs b/tests/compile-fail/cast_fn_ptr5.rs index ff2a73d5a48..fb2b4403363 100644 --- a/tests/compile-fail/cast_fn_ptr5.rs +++ b/tests/compile-fail/cast_fn_ptr5.rs @@ -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:: u32, fn()>(f) }; - g() + g() //~ ERROR calling a function with return type u32 passing return place of type () } -- 2.44.0