Skip to content

Commit 9ec8373

Browse files
committed
Crashes tests
1 parent 238d113 commit 9ec8373

File tree

2 files changed

+11
-23
lines changed

2 files changed

+11
-23
lines changed

tests/crashes/127643.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
//@ known-bug: #127643
22

3-
#![feature(associated_const_equality)]
3+
#![feature(generic_const_items, associated_const_equality)]
4+
#![expect(incomplete_features)]
45

5-
fn user() -> impl Owner<dyn Sized, C = 0> {}
6-
7-
trait Owner<K> {
8-
const C: K;
9-
}
10-
impl<K: ConstDefault> Owner<K> for () {
11-
const C: K = K::DEFAULT;
6+
trait Foo {
7+
const ASSOC<const N: u32>: u32;
128
}
139

14-
trait ConstDefault {
15-
const DEFAULT: Self;
10+
impl Foo for () {
11+
const ASSOC<const N: u32>: u32 = N;
1612
}
1713

18-
fn main() {}
14+
fn bar<const N: u64, T: Foo<ASSOC<N> = { N }>>() {}
15+
16+
fn main() {
17+
bar::<10_u64, ()>();
18+
}

tests/crashes/133066.rs

-12
This file was deleted.

0 commit comments

Comments
 (0)