0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-24 18:21:15 +01:00
rust/tests/crashes/128176.rs

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

14 lines
233 B
Rust
Raw Permalink Normal View History

2024-08-04 21:25:49 +02:00
//@ known-bug: rust-lang/rust#128176
#![feature(generic_const_exprs)]
#![feature(dyn_compatible_for_dispatch)]
2024-08-04 21:25:49 +02:00
trait X {
type Y<const N: i16>;
}
const _: () = {
fn f2<'a>(arg: Box<dyn X<Y<1> = &'a ()>>) {}
};
fn main() {}