Content-Length: 24006 | pFad | https://doc.rust-lang.org/std/string/../error/../string/../vec/../../error_codes/./E0799.html

E0799 - 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 E0799

Something other than a type or const parameter has been used when one was expected.

Erroneous code example:

fn bad1() -> impl Sized + use<main> {}

fn bad2(x: ()) -> impl Sized + use<x> {}

fn main() {}

In the given examples, for bad1, the name main corresponds to a function rather than a type or const parameter. In bad2, the name x corresponds to a function argument rather than a type or const parameter.

Only type and const parameters, including Self, may be captured by use<...> precise capturing bounds.









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/string/../error/../string/../vec/../../error_codes/./E0799.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy