rust/tests/crashes/127643.rs

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

19 lines
279 B
Rust
Raw Normal View History

2024-07-21 10:50:57 -05:00
//@ known-bug: #127643
#![feature(associated_const_equality)]
fn user() -> impl Owner<dyn Sized, C = 0> {}
trait Owner<K> {
const C: K;
}
impl<K: ConstDefault> Owner<K> for () {
const C: K = K::DEFAULT;
}
trait ConstDefault {
const DEFAULT: Self;
}
fn main() {}