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