summaryrefslogtreecommitdiffstats
path: root/src/test/ui/type-alias-impl-trait/type-alias-impl-trait-const.rs
blob: 5630e036be34b317cb9eea81a716b718fc81d9b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
#![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() {}