]>
git.proxmox.com Git - rustc.git/blob - tests/ui/impl-trait/in-trait/foreign.rs
2 // aux-build: rpitit.rs
6 use rpitit
::{Foo, Foreign}
;
9 // Implement an RPITIT from another crate.
12 fn bar(self) -> Arc
<String
> {
13 Arc
::new(String
::new())
17 fn generic(f
: impl Foo
) {
22 // Witness an RPITIT from another crate.
23 let &() = Foreign
.bar();
25 let x
: Arc
<String
> = Local
.bar();