26 lines
321 B
Rust
26 lines
321 B
Rust
//@ check-pass
|
|
//@ revisions: current next
|
|
//@[next] compile-flags: -Znext-solver
|
|
|
|
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(&());
|
|
}
|