Sign in
rust
/
rust-lang
/
rust
/
refs/heads/stable
/
.
/
tests
/
ui
/
c-variadic
/
fn-item-diagnostic-issue-69232.rs
blob: d0ef91b22b234cdb4f102da5db83ec9afa4c149f [
file
] [
log
] [
blame
]
// https://github.com/rust-lang/rust/issues/69232
extern
"C"
{
fn
foo
(
x
:
usize
,
...);
}
fn
test
()
->
u8
{
127
}
fn
main
()
{
unsafe
{
foo
(
1
,
test
)
};
//~ ERROR can't pass a function item to a variadic function
}