2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2022-08-12 03:48:40 +00:00
|
|
|
// (this requires debug assertions)
|
|
|
|
|
|
|
|
#![feature(adt_const_params)]
|
|
|
|
#![allow(incomplete_features)]
|
|
|
|
|
|
|
|
fn foo<const B: &'static bool>(arg: &'static bool) -> bool {
|
|
|
|
B == arg
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
foo::<{ &true }>(&false);
|
|
|
|
}
|