16 lines
224 B
Rust
16 lines
224 B
Rust
|
//@ known-bug: #131046
|
||
|
|
||
|
trait Owner {
|
||
|
const C<const N: u32>: u32;
|
||
|
}
|
||
|
|
||
|
impl Owner for () {
|
||
|
const C<const N: u32>: u32 = N;
|
||
|
}
|
||
|
|
||
|
fn take0<const N: u64>(_: impl Owner<C<N> = { N }>) {}
|
||
|
|
||
|
fn main() {
|
||
|
take0::<128>(());
|
||
|
}
|