2023-09-02 05:06:21 +00:00
|
|
|
//@ check-pass
|
|
|
|
//@ revisions: current next
|
2024-03-10 21:18:41 -04:00
|
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
2023-12-14 13:11:28 +01:00
|
|
|
//@[next] compile-flags: -Znext-solver
|
2023-09-02 05:06:21 +00:00
|
|
|
|
|
|
|
trait Foo {
|
|
|
|
type Bar<'a>
|
|
|
|
where
|
|
|
|
Self: Sized;
|
|
|
|
|
|
|
|
fn test(&self);
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Foo for () {
|
|
|
|
type Bar<'a> = () where Self: Sized;
|
|
|
|
|
|
|
|
fn test(&self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn test(x: &dyn Foo) {
|
|
|
|
x.test();
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
test(&());
|
|
|
|
}
|