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.

9 lines
163 B
Rust
Raw Normal View History

2024-06-30 17:08:45 +00:00
//@ compile-flags: -Znext-solver
#![crate_type = "lib"]
2024-10-30 18:03:44 +00:00
#![feature(const_closures, const_trait_impl)]
pub const fn test() {
let cl = const || {};
cl();
}