2024-02-16 14:02:50 -06:00
|
|
|
//@ aux-build:hidden-struct.rs
|
|
|
|
//@ compile-flags: --crate-type lib
|
2023-12-19 21:52:04 -06:00
|
|
|
|
|
|
|
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
|