blob: 820b0cbb30faa31f4bde3357424ce5eebe99964f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//@ aux-build:private-inferred-type.rs
#![feature(decl_macro)]
extern crate private_inferred_type as ext;
fn main() {
ext::m!();
//~^ ERROR type `fn() {ext::priv_fn}` is private
//~| ERROR static `ext::PRIV_STATIC` is private
//~| ERROR type `ext::PrivEnum` is private
//~| ERROR type `fn() {<u8 as ext::PrivTrait>::method}` is private
//~| ERROR type `fn(u8) -> ext::PrivTupleStruct {ext::PrivTupleStruct}` is private
//~| ERROR type `fn(u8) -> PubTupleStruct {PubTupleStruct}` is private
//~| ERROR type `for<'a> fn(&'a Pub<u8>) {Pub::<u8>::priv_method}` is private
}
|