blob: 590107d10384a6f0c930a87aeabac3bb4c772b25 [file] [log] [blame]
#![feature(type_alias_impl_trait)]
//@ check-pass
fn main() {}
type NoReveal = impl std::fmt::Debug;
fn define_no_reveal() -> NoReveal {
""
}
fn no_reveal(x: NoReveal) {
let _: &'static str = x;
let _ = x as &'static str;
}