]> git.proxmox.com Git - rustc.git/blob - tests/ui/traits/impl-2.rs
New upstream version 1.68.2+dfsg1
[rustc.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() {}