about summary refs log tree commit diff
path: root/tests/ui/suggestions/dont-suggest-foreign-doc-hidden.rs
blob: 281975dcc2f3b2a8b001cc3cc454fbd0934e91f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ 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