Add auto trait leakage TAIT test

This commit is contained in:
Santiago Pastorino 2021-08-27 18:42:28 -03:00
parent 7b0e554ee2
commit 5ac46d7bd8
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF

View file

@ -0,0 +1,18 @@
// check-pass
#![feature(type_alias_impl_trait)]
#![allow(dead_code)]
mod m {
type Foo = impl std::fmt::Debug;
pub fn foo() -> Foo {
22_u32
}
}
fn is_send<T: Send>(_: T) {}
fn main() {
is_send(m::foo());
}