mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
14 lines
233 B
Rust
14 lines
233 B
Rust
//@ known-bug: rust-lang/rust#128176
|
|
|
|
#![feature(generic_const_exprs)]
|
|
#![feature(dyn_compatible_for_dispatch)]
|
|
trait X {
|
|
type Y<const N: i16>;
|
|
}
|
|
|
|
const _: () = {
|
|
fn f2<'a>(arg: Box<dyn X<Y<1> = &'a ()>>) {}
|
|
};
|
|
|
|
fn main() {}
|