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