blob: a83e496f2703d498d03aaa39355731a6b135fcba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
//@ aux-build:hidden-struct.rs
extern crate hidden_struct;
#[doc(hidden)]
mod local {
pub struct Foo;
}
pub fn test(_: Foo) {}
//~^ ERROR [E0412]
pub fn test2(_: Bar) {}
//~^ ERROR [E0412]
pub fn test3(_: Baz) {}
//~^ ERROR [E0412]
pub fn test4(_: Quux) {}
//~^ ERROR [E0412]
fn test5<T: hidden_struct::Marker>() {}
fn main() {
test5::<i32>();
//~^ ERROR [E0277]
}
|