2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2017-05-26 15:36:40 -05:00
|
|
|
// Regression test for #42210.
|
|
|
|
|
|
|
|
// compile-flags: -g
|
2019-08-17 00:08:01 -05:00
|
|
|
// ignore-asmjs wasm2js does not support source maps yet
|
2017-05-26 15:36:40 -05:00
|
|
|
|
|
|
|
trait Foo {
|
|
|
|
fn foo() { }
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Bar;
|
|
|
|
|
|
|
|
trait Baz {
|
|
|
|
}
|
|
|
|
|
2019-05-28 13:47:21 -05:00
|
|
|
impl Foo for (Bar, dyn Baz) { }
|
2017-05-26 15:36:40 -05:00
|
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2019-05-28 13:47:21 -05:00
|
|
|
<(Bar, dyn Baz) as Foo>::foo()
|
2017-05-26 15:36:40 -05:00
|
|
|
}
|