rust/tests/ui/associated-consts/projection-unspecified-but-bounded.rs
2023-04-23 18:09:30 +00:00

17 lines
289 B
Rust

#![feature(associated_const_equality)]
// Issue 110549
pub trait TraitWAssocConst {
const A: usize;
}
fn foo<T: TraitWAssocConst<A = 32>>() {}
fn bar<T: TraitWAssocConst>() {
foo::<T>();
//~^ ERROR type mismatch resolving `<T as TraitWAssocConst>::A == 32`
}
fn main() {}