Content-Length: 12632 | pFad | https://doc.rust-lang.org/reference/../../std/../error_codes/./E0720.html

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

An impl Trait type expands to a recursive type.

Erroneous code example:

#![allow(unused)]
fn main() {
fn make_recursive_type() -> impl Sized {
    [make_recursive_type(), make_recursive_type()]
}
}

An impl Trait type must be expandable to a concrete type that contains no impl Trait types. For example the previous example tries to create an impl Trait type T that is equal to [T, T].









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/reference/../../std/../error_codes/./E0720.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy