mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 00:29:23 +00:00
20 lines
279 B
Rust
20 lines
279 B
Rust
//@ known-bug: #79590
|
|
|
|
trait Database: Restriction<Inner = u32> {}
|
|
|
|
trait Restriction {
|
|
type Inner;
|
|
}
|
|
|
|
struct Test {}
|
|
|
|
impl Database for Test {}
|
|
impl Restriction for Test {
|
|
type Inner = u32;
|
|
}
|
|
|
|
fn main() {
|
|
let t = Test {};
|
|
let x: &dyn Database<Inner = _> = &t;
|
|
}
|