rust/tests/ui/rfcs/rfc-2632-const-trait-impl/effects/effect-param-infer.rs
2024-06-30 17:08:45 +00:00

17 lines
377 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
//@ compile-flags: -Znext-solver
#![allow(incomplete_features)]
#![feature(const_trait_impl, effects)]
#[const_trait]
pub trait Foo<Rhs: ?Sized = Self> {
/* stuff */
}
impl const Foo for () {}
fn main() {}