Files
rust/tests/crashes/127643.rs

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

19 lines
321 B
Rust
Raw Normal View History

2024-07-21 17:50:57 +02:00
//@ known-bug: #127643
2025-05-01 17:12:40 +01:00
#![feature(generic_const_items, associated_const_equality)]
#![expect(incomplete_features)]
2024-07-21 17:50:57 +02:00
2025-05-01 17:12:40 +01:00
trait Foo {
const ASSOC<const N: u32>: u32;
2024-07-21 17:50:57 +02:00
}
2025-05-01 17:12:40 +01:00
impl Foo for () {
const ASSOC<const N: u32>: u32 = N;
2024-07-21 17:50:57 +02:00
}
2025-05-01 17:12:40 +01:00
fn bar<const N: u64, T: Foo<ASSOC<N> = { N }>>() {}
fn main() {
bar::<10_u64, ()>();
}