blob: fcacf458a9fa507a4e8b077ff5bd4d238da21693 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// 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.
//
//@ check-pass
//@ compile-flags: -Znext-solver
#![feature(const_trait_impl)]
#[const_trait]
pub trait Foo<Rhs: ?Sized = Self> {
/* stuff */
}
impl const Foo for () {}
fn main() {}
|