rust/tests/ui/consts/auxiliary/closure-in-foreign-crate.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
139 B
Rust
Raw Normal View History

#![crate_type = "lib"]
2023-12-18 22:28:21 -06:00
#![feature(const_closures, const_trait_impl, effects)]
pub const fn test() {
let cl = const || {};
cl();
}