summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/auxiliary/closure-in-foreign-crate.rs
blob: edc7fa81abb4fc97269a88a857308b97548fd895 (plain)
1
2
3
4
5
6
7
8
#![crate_type = "lib"]
#![feature(const_closures, const_trait_impl)]
#![allow(incomplete_features)]

pub const fn test() {
    let cl = const || {};
    cl();
}