mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
16 lines
289 B
Rust
16 lines
289 B
Rust
// aux-build:hidden-struct.rs
|
|
// compile-flags: --crate-type lib
|
|
|
|
extern crate hidden_struct;
|
|
|
|
#[doc(hidden)]
|
|
mod local {
|
|
pub struct Foo;
|
|
}
|
|
|
|
pub fn test(_: Foo) {}
|
|
//~^ ERROR cannot find type `Foo` in this scope
|
|
|
|
pub fn test2(_: Bar) {}
|
|
//~^ ERROR cannot find type `Bar` in this scope
|