about summary refs log tree commit diff
path: root/tests/coverage/overflow.rs
diff options
context:
space:
mode:
authorNicholas Bishop <nbishop@nbishop.net>2023-10-29 17:28:56 -0400
committerNicholas Bishop <nbishop@nbishop.net>2023-10-30 10:38:25 -0400
commitf91b5ceaf2568c38afc5a4b7c82459ca3d857998 (patch)
tree0e5a252f60f1d1b5b2bc44e5ab5698f51c49283f /tests/coverage/overflow.rs
parent8508e658958d02bc0c4bb62646a9cf9098ee53a8 (diff)
downloadrust-f91b5ceaf2568c38afc5a4b7c82459ca3d857998.tar.gz
rust-f91b5ceaf2568c38afc5a4b7c82459ca3d857998.zip
Explicitly reject const C-variadic functions
Trying to use C-variadics in a const function would previously fail with
an error like "destructor of `VaListImpl<'_>` cannot be evaluated at
compile-time".

Add an explicit check for const C-variadics to provide a clearer error:
"functions cannot be both `const` and C-variadic".
Diffstat (limited to 'tests/coverage/overflow.rs')
0 files changed, 0 insertions, 0 deletions