Skip to content

Commit 5ac46d7

Browse files
committed
Add auto trait leakage TAIT test
1 parent 7b0e554 commit 5ac46d7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// check-pass
2+
3+
#![feature(type_alias_impl_trait)]
4+
#![allow(dead_code)]
5+
6+
mod m {
7+
type Foo = impl std::fmt::Debug;
8+
9+
pub fn foo() -> Foo {
10+
22_u32
11+
}
12+
}
13+
14+
fn is_send<T: Send>(_: T) {}
15+
16+
fn main() {
17+
is_send(m::foo());
18+
}

0 commit comments

Comments
 (0)