Skip to content

Commit 1e927d8

Browse files
committed
Add test for rust-lang#60407.
1 parent b779f45 commit 1e927d8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// check-pass
2+
3+
#![feature(existential_type)]
4+
5+
existential type Debuggable: core::fmt::Debug;
6+
7+
static mut TEST: Option<Debuggable> = None;
8+
9+
fn main() {
10+
unsafe { TEST = Some(foo()) }
11+
}
12+
13+
fn foo() -> Debuggable {
14+
0u32
15+
}

0 commit comments

Comments
 (0)