rust/tests/ui/issues/issue-42210.rs

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

21 lines
211 B
Rust
Raw Normal View History

//@ run-pass
// Regression test for #42210.
//@ compile-flags: -g
trait Foo {
fn foo() { }
}
struct Bar;
trait Baz {
}
2019-05-28 18:47:21 +00:00
impl Foo for (Bar, dyn Baz) { }
fn main() {
2019-05-28 18:47:21 +00:00
<(Bar, dyn Baz) as Foo>::foo()
}