2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2018-08-31 15:02:01 +02:00
|
|
|
#![allow(non_snake_case)]
|
|
|
|
|
2015-03-22 13:13:15 -07:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-02-20 11:36:31 +02:00
|
|
|
pub mod Foo {
|
|
|
|
pub trait Trait {
|
2015-02-20 08:17:05 +02:00
|
|
|
fn foo(&self);
|
2014-09-10 22:26:41 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-20 08:17:05 +02:00
|
|
|
mod Bar {
|
2019-05-28 14:47:21 -04:00
|
|
|
impl<'a> dyn (::Foo::Trait) + 'a {
|
2015-02-20 08:17:05 +02:00
|
|
|
fn bar(&self) { self.foo() }
|
|
|
|
}
|
2014-09-10 22:26:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|