]> git.lizzy.rs Git - rust.git/blob - tests/pretty/fn-variadic.rs
Add ~const bounds trait bounds when using derive_const
[rust.git] / tests / pretty / fn-variadic.rs
1 // Check that `fn foo(x: i32, ...)` does not print as `fn foo(x: i32, ..., ...)`.
2 // See issue #58853.
3
4 // pp-exact
5 #![feature(c_variadic)]
6
7 extern "C" {
8     pub fn foo(x: i32, ...);
9 }
10
11 pub unsafe extern "C" fn bar(_: i32, mut ap: ...) -> usize {
12     ap.arg::<usize>()
13 }
14
15 fn main() {}