blob: 3efbfaf09167e2a22325d1e7dc4d20cada49ed7d (
plain)
1
2
3
4
5
6
7
8
9
10
|
// check-pass
#![feature(type_alias_impl_trait)]
type Foo = (impl Sized, u8);
pub fn foo() -> Foo {
//~^ WARNING type alias `Foo` is more private than the item `foo`
(42, 42)
}
fn main() {}
|