Content-Length: 13065 | pFad | https://doc.rust-lang.org/std/pin/../default/../rc/../../../std/../error_codes/./E0429.html

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

The self keyword cannot appear alone as the last segment in a use declaration.

Erroneous code example:

#![allow(unused)]
fn main() {
use std::fmt::self; // error: `self` imports are only allowed within a { } list
}

To use a namespace itself in addition to some of its members, self may appear as part of a brace-enclosed list of imports:

#![allow(unused)]
fn main() {
use std::fmt::{self, Debug};
}

If you only want to import the namespace, do so directly:

#![allow(unused)]
fn main() {
use std::fmt;
}








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/pin/../default/../rc/../../../std/../error_codes/./E0429.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy