]> git.proxmox.com Git - rustc.git/blob - tests/ui/coherence/impl-foreign-for-foreign[local].rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / coherence / impl-foreign-for-foreign[local].rs
1 // compile-flags:--crate-name=test
2 // aux-build:coherence_lib.rs
3 // check-pass
4
5 extern crate coherence_lib as lib;
6 use lib::*;
7 use std::rc::Rc;
8
9 struct Local<T>(Rc<T>);
10
11 impl Remote1<Local<i32>> for i32 {}
12 impl<T> Remote1<Local<T>> for f32 {}
13
14 fn main() {}