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

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

An incorrect visibility restriction was specified.

Erroneous code example:

#![allow(unused)]
fn main() {
mod foo {
    pub(foo) struct Bar {
        x: i32
    }
}
}

To make struct Bar only visible in module foo the in keyword should be used:

mod foo {
    pub(in crate::foo) struct Bar {
        x: i32
    }
}
fn main() {}

For more information see the Rust Reference on Visibility.









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/./E0704.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy