]> git.lizzy.rs Git - rust.git/blob - tests/ui/privacy/private-inferred-type-3.rs
add tests for 107090
[rust.git] / tests / ui / privacy / private-inferred-type-3.rs
1 // aux-build:private-inferred-type.rs
2
3 // error-pattern:type `fn() {ext::priv_fn}` is private
4 // error-pattern:static `ext::PRIV_STATIC` is private
5 // error-pattern:type `ext::PrivEnum` is private
6 // error-pattern:type `fn() {<u8 as ext::PrivTrait>::method}` is private
7 // error-pattern:type `fn(u8) -> ext::PrivTupleStruct {ext::PrivTupleStruct}` is private
8 // error-pattern:type `fn(u8) -> PubTupleStruct {PubTupleStruct}` is private
9 // error-pattern:type `for<'a> fn(&'a Pub<u8>) {Pub::<u8>::priv_method}` is private
10
11 #![feature(decl_macro)]
12
13 extern crate private_inferred_type as ext;
14
15 fn main() {
16     ext::m!();
17 }