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
|
|
|
|
|
|
|
|
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
|
|
|
}
|