mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
11 lines
229 B
Rust
11 lines
229 B
Rust
#![feature(type_alias_impl_trait)]
|
|
#![allow(incomplete_features)]
|
|
pub mod foo {
|
|
type MainFn = impl Fn();
|
|
|
|
fn bar() {}
|
|
pub const BAR: MainFn = bar;
|
|
}
|
|
|
|
use foo::BAR as main; //~ ERROR `main` function not found in crate
|