Sign in
rust
/
rust
/
HEAD
/
.
/
src
/
tools
/
miri
/
tests
/
native-lib
/
fail
/
function_not_in_so.rs
blob: a7df3e6118725c196a3f5c71ea966e9afb194d3b [
file
] [
log
] [
blame
]
// Only works on Unix targets
//@ignore-target: windows wasm
//@only-on-host
//@normalize-stderr-test: "OS `.*`" -> "$$OS"
extern
"C"
{
fn
foo
();
}
fn
main
()
{
unsafe
{
foo
();
//~ ERROR: unsupported operation: can't call foreign function `foo`
}
}