]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/impl-2.rs
Auto merge of #105716 - chriswailes:ndk-update-redux, r=pietroalbini
[rust.git] / tests / ui / traits / impl-2.rs
1 // run-pass
2 #![allow(dead_code)]
3 #![allow(non_snake_case)]
4
5 // pretty-expanded FIXME #23616
6
7 pub mod Foo {
8     pub trait Trait {
9         fn foo(&self);
10     }
11 }
12
13 mod Bar {
14     impl<'a> dyn (::Foo::Trait) + 'a {
15         fn bar(&self) { self.foo() }
16     }
17 }
18
19 fn main() {}