about summary refs log tree commit diff
path: root/tests/ui/type-alias-impl-trait/auto-trait-leakage.rs
blob: cf385223ce45e99e25d26f4addbe313212cf12a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//@ check-pass

#![feature(type_alias_impl_trait)]
#![allow(dead_code)]

pub(crate) type Foo = impl std::fmt::Debug;

#[define_opaque(Foo)]
pub(crate) fn foo() -> Foo {
    22_u32
}

fn is_send<T: Send>(_: T) {}

fn main() {
    is_send(foo());
}