rust/tests/crashes/79590.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
279 B
Rust
Raw Normal View History

//@ 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;
}