mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-30 00:03:49 +00:00
10 lines
173 B
Rust
10 lines
173 B
Rust
//@ known-bug: #137514
|
|
//@ needs-rustc-debug-assertions
|
|
#![feature(generic_const_exprs)]
|
|
|
|
trait Bar<const N: usize> {}
|
|
|
|
trait BB = Bar<{ 1i32 + 1 }>;
|
|
|
|
fn foo(x: &dyn BB) {}
|