rust/tests/ui/traits/const-traits/call.rs

12 lines
276 B
Rust

// FIXME(const_trait_impl) check-pass
//@ compile-flags: -Znext-solver
#![feature(const_closures, const_trait_impl)]
#![allow(incomplete_features)]
pub const _: () = {
assert!((const || true)());
//~^ ERROR cannot call non-const closure in constants
};
fn main() {}