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

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

22 lines
266 B
Rust
Raw Normal View History

// run-pass
// Regression test for #42210.
// compile-flags: -g
// ignore-asmjs wasm2js does not support source maps yet
trait Foo {
fn foo() { }
}
struct Bar;
trait Baz {
}
2019-05-28 13:47:21 -05:00
impl Foo for (Bar, dyn Baz) { }
fn main() {
2019-05-28 13:47:21 -05:00
<(Bar, dyn Baz) as Foo>::foo()
}