blob: 6b37552fed145d437c1001bbcec0c1d86b89c610 [file] [log] [blame]
#![feature(type_alias_impl_trait)]
//@ check-pass
// Ensures that `const` items can constrain an opaque `impl Trait`.
use std::fmt::Debug;
pub type Foo = impl Debug;
const _FOO: Foo = 5;
fn main() {}