mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
27 lines
378 B
Rust
27 lines
378 B
Rust
//@ check-pass
|
|
//@ revisions: current next
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
|
//@[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(&());
|
|
}
|