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

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

12 lines
267 B
Rust
Raw Normal View History

// FIXME(const_trait_impl) check-pass
2024-06-30 17:08:45 +00:00
//@ compile-flags: -Znext-solver
2024-10-30 18:03:44 +00:00
#![feature(const_closures, const_trait_impl)]
2022-12-21 16:32:16 +00:00
#![allow(incomplete_features)]
pub const _: () = {
assert!((const || true)());
2025-07-03 09:14:56 +00:00
//~^ ERROR }: [const] Fn()` is not satisfied
2022-12-21 16:32:16 +00:00
};
fn main() {}