diff options
| author | Nicholas Bishop <nbishop@nbishop.net> | 2023-10-29 17:28:56 -0400 |
|---|---|---|
| committer | Nicholas Bishop <nbishop@nbishop.net> | 2023-10-30 10:38:25 -0400 |
| commit | f91b5ceaf2568c38afc5a4b7c82459ca3d857998 (patch) | |
| tree | 0e5a252f60f1d1b5b2bc44e5ab5698f51c49283f /tests/coverage/overflow.rs | |
| parent | 8508e658958d02bc0c4bb62646a9cf9098ee53a8 (diff) | |
| download | rust-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
