Sign in
rust
/
rust
/
98f87362d97d3b9eaeea66a7cf20d11e5bb70dbd
/
.
/
src
/
tools
/
miri
/
tests
/
fail
/
unsupported_foreign_function.rs
blob: 44f032fbabe0f57f548727b9c503ef9c95cfa912 [
file
]
//@normalize-stderr-test: "OS `.*`" -> "$$OS"
fn
main
()
{
extern
"Rust"
{
fn
foo
();
}
unsafe
{
foo
();
//~ ERROR: unsupported operation: can't call foreign function `foo`
}
}