]> git.lizzy.rs Git - rust.git/blobdiff - tests/compile-fail/function_calls/exported_symbol_wrong_type.rs
rustup
[rust.git] / tests / compile-fail / function_calls / exported_symbol_wrong_type.rs
index 3ffd506c94bb57df8b9c146ef93d3f0a2c59de4c..0a493e35a7ce6d12ec438da6a74fbea692f733b0 100644 (file)
@@ -5,5 +5,5 @@ fn main() {
     extern "C" {
         fn FOO();
     }
-    unsafe { FOO() } //~ ERROR attempt to call an exported symbol that is not defined as a function
+    unsafe { FOO() } //~ ERROR unsupported operation: can't call foreign function: FOO
 }