]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/private-inferred-type-3.rs
Merge commit 'efa8f5521d3813cc897ba29ea0ef98c7aef66bb6' into rustfmt-subtree
[rust.git] / src / test / 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 `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<'r> fn(&'r 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 }