mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-02 11:37:54 +00:00
28 lines
385 B
Rust
28 lines
385 B
Rust
//@ 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]
|
|
}
|