Sign in
rust
/
rust
/
6ea369cfee9420f6fe3f89e4bff7b01ac0ef920d
/
.
/
tests
/
ui
/
type-alias-impl-trait
/
privacy.rs
blob: 4fbb9c7313f804b6e2b2bab23bbf1d03816364d0 [
file
]
//@ check-pass
#![
feature
(
type_alias_impl_trait
)]
type
Foo
=
(
impl
Sized
,
u8
);
#[
define_opaque
(
Foo
)]
pub
fn
foo
()
->
Foo
{
//~^ WARNING type alias `Foo` is more private than the item `foo`
(
42
,
42
)
}
fn
main
()
{}