blob: 53280c28ecb1cbf64bb2d3ef1a6b00e670195adf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//@ check-pass
#![feature(type_alias_impl_trait)]
pub type Debuggable = impl core::fmt::Debug;
#[define_opaque(Debuggable)]
pub fn foo() -> Debuggable {
0u32
}
static mut TEST: Option<Debuggable> = None;
fn main() {
unsafe { TEST = Some(foo()) }
}
|