blob: 007dcf3bcb6800d466d3f466909c0a1a7437e7bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#![feature(rustc_attrs)]
#![feature(type_alias_impl_trait)]
type Foo = impl Fn() -> usize;
const fn bar() -> Foo {
|| 0usize
}
const BAZR: Foo = bar();
#[rustc_error]
fn main() {} //~ ERROR
|