2023-12-04 15:08:14 +00:00
|
|
|
// Ensure that we don't get a mismatch error when inserting the host param
|
|
|
|
// at the end of generic args when the generics have defaulted params.
|
|
|
|
//
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ check-pass
|
2023-12-04 15:08:14 +00:00
|
|
|
|
|
|
|
#![feature(const_trait_impl, effects)]
|
|
|
|
|
|
|
|
#[const_trait]
|
|
|
|
pub trait Foo<Rhs: ?Sized = Self> {
|
|
|
|
/* stuff */
|
|
|
|
}
|
|
|
|
|
|
|
|
impl const Foo for () {}
|
|
|
|
|
|
|
|
fn main() {}
|