]> git.proxmox.com Git - rustc.git/blame - src/test/ui/coherence/impl[t]-foreign[local_fundamental[t]]-for-foreign.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / coherence / impl[t]-foreign[local_fundamental[t]]-for-foreign.rs
CommitLineData
e74abb32
XL
1// compile-flags:--crate-name=test
2// aux-build:coherence_lib.rs
3// check-pass
4
5extern crate coherence_lib as lib;
6use lib::*;
7use std::rc::Rc;
8
9struct Local;
10struct Local2<T>(Rc<T>);
11
12impl<T> Remote2<Local, Box<T>> for u32 {}
13impl<'a, T> Remote2<Local, &'a T> for u32 {}
14impl<T> Remote2<Local2<T>, Box<T>> for u32 {}
15impl<'a, T> Remote2<Local2<T>, &'a T> for u32 {}
16
17fn main() {}