mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
14 lines
235 B
Rust
14 lines
235 B
Rust
//@ check-pass
|
|
// (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);
|
|
}
|