Content-Length: 24056 | pFad | https://doc.rust-lang.org/std/iter/../clone/../../../std/../error_codes/./E0743.html

E0743 - Error codes index

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Error code E0743

The C-variadic type ... has been nested inside another type.

Erroneous code example:

#![allow(unused)]
fn main() {
fn foo2(x: u8, y: &...) {} // error!
}

Only foreign functions can use the C-variadic type (...). In such functions, ... may only occur non-nested. That is, y: &'a ... is not allowed.

A C-variadic type is used to give an undefined number of parameters to a given function (like printf in C). The equivalent in Rust would be to use macros directly (like println! for example).









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/std/iter/../clone/../../../std/../error_codes/./E0743.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy