summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type-alias-impl-trait/issue-60407.rs
blob: b833429c7692249b79d617f9a62771d9ea140b37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![feature(type_alias_impl_trait, rustc_attrs)]

type Debuggable = impl core::fmt::Debug;

static mut TEST: Option<Debuggable> = None;

#[rustc_error]
fn main() {
    //~^ ERROR
    unsafe { TEST = Some(foo()) }
}

fn foo() -> Debuggable {
    0u32
}