Content-Length: 23852 | pFad | https://doc.rust-lang.org/std/string/../../../../../std/string/../../error_codes/./E0069.html

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

The compiler found a function whose body contains a return; statement but whose return type is not ().

Erroneous code example:

#![allow(unused)]
fn main() {
// error
fn foo() -> u8 {
    return;
}
}

Since return; is just like return ();, there is a mismatch between the function’s return type and the value being returned.









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/../../../../../std/string/../../error_codes/./E0069.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy