mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-07 12:48:30 +00:00
16 lines
313 B
Rust
16 lines
313 B
Rust
![]() |
// 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
|
||
|
|
||
|
#![feature(const_trait_impl, effects)]
|
||
|
|
||
|
#[const_trait]
|
||
|
pub trait Foo<Rhs: ?Sized = Self> {
|
||
|
/* stuff */
|
||
|
}
|
||
|
|
||
|
impl const Foo for () {}
|
||
|
|
||
|
fn main() {}
|