use core::nonzero::NonZero;
use std::os::raw::c_void;
type Foo = NonZero<*const c_void>;
// warning: private type in public interface
pub type Bar = Foo;
// warning: private type in public interface
pub type Baz = Foo;
pub use
ing NonZero
λ° c_void
λ μλνμ§λ§ λμμ΄ λμ§ μμμΌλ―λ‘ μ ν μμ²΄κ° λ¬Έμ κ° μλλλ€. μλ₯Ό λ€μ΄ μ€λ₯ λ©μμ§κ° λ³μΉμ μΈμνμ§ λͺ»ν λ Rustκ° μ΄ λμμ λν΄ λΆννλ κ²μ μ΄μνκ² λ³΄μ
λλ€. κ·Έλ κ² λλλΌλ κ°μΈ λ³μΉμ μ μλ κ³΅μ© μ νμΌλ‘ νμΈνλ κ²μ μ¬μν μΌμ΄λ―λ‘ μ΄λ₯Ό νμ©νμ§ μλ μ νΈλ¦¬ν°λ₯Ό λ³Ό μ μμ΅λλ€.
λ΄ rustc --version --verbose
:
rustc 1.11.0-nightly (6b4511755 2016-06-14)
binary: rustc
commit-hash: 6b4511755cfe63a46f2db8c72145e07f94911c08
commit-date: 2016-06-14
host: x86_64-unknown-linux-gnu
release: 1.11.0-nightly
μ΄μ λν λ¬Έμ (https://github.com/rust-lang/rust/issues/30503)μ μ΄λ₯Ό μμ νλ PR(https://github.com/rust-lang/rust/pull/34193)μ΄ μμ΅λλ€.
μ΄κ²μ λ°λ
μ΄μ μ μ ꡬνλ μ μμμ§λ§ μ°μ μμκ° μ§μ λμ§ μμ 보쑰 κΈ°λ₯μ λν μμ¬ κ²°μ μ΄ λλλ‘ λ§€μ° λ립λλ€.
κ°μ₯ μ μ©ν λκΈ
μ΄μ λν λ¬Έμ (https://github.com/rust-lang/rust/issues/30503)μ μ΄λ₯Ό μμ νλ PR(https://github.com/rust-lang/rust/pull/34193)μ΄ μμ΅λλ€.
μ΄κ²μ λ°λ μ΄μ μ μ ꡬνλ μ μμμ§λ§ μ°μ μμκ° μ§μ λμ§ μμ 보쑰 κΈ°λ₯μ λν μμ¬ κ²°μ μ΄ λλλ‘ λ§€μ° λ립λλ€.