11 lines
343 B
Rust
11 lines
343 B
Rust
//! Check that we correctly handle associated const bindings
|
|
//! in `impl Trait` where the RHS is a const param (#151642).
|
|
|
|
#![feature(min_generic_const_args)]
|
|
#![expect(incomplete_features)]
|
|
|
|
trait Trait { type const CT: bool; }
|
|
|
|
fn f<const N: i32>(_: impl Trait<CT = { N }>) {}
|
|
//~^ ERROR the constant `N` is not of type `bool`
|
|
fn main() {}
|