about summary refs log tree commit diff
path: root/tests/ui/type-alias-impl-trait/issue-53096.rs
blob: 60e455a6a07ddedd5f3328417bd0a1333c758f37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ check-pass

#![feature(type_alias_impl_trait)]

pub type Foo = impl Fn() -> usize;
#[define_opaque(Foo)]
pub const fn bar() -> Foo {
    || 0usize
}
const BAZR: Foo = bar();

fn main() {}