mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-16 05:56:56 +00:00
12 lines
233 B
Rust
12 lines
233 B
Rust
//@ known-bug: #137260
|
|
#![feature(generic_const_exprs)]
|
|
#![allow(incomplete_features)]
|
|
|
|
trait Iter<const N: usize = { 1 + true }> {}
|
|
|
|
fn needs_iter<const N: usize, T: Iter<N>>() {}
|
|
|
|
fn test() {
|
|
needs_iter::<1, dyn Iter<()>>();
|
|
}
|