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