rust/tests/ui/reachable/foreign-priv.rs
2023-05-08 21:44:21 +00:00

13 lines
221 B
Rust

// aux-build:foreign-priv-aux.rs
// build-pass
#![crate_type = "lib"]
extern crate foreign_priv_aux;
use foreign_priv_aux::{ImplPrivTrait, PubTrait, Wrapper};
pub fn foo(x: Wrapper<ImplPrivTrait>) {
x.pub_fn();
}