rust/tests/ui/reachable/foreign-priv.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
223 B
Rust
Raw Normal View History

2023-05-08 16:43:03 -05:00
//@ 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();
}