]> git.lizzy.rs Git - rust.git/blob - tests/ui/coherence/impl[t]-foreign[local]-for-fundamental[foreign[t]].rs
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[rust.git] / tests / ui / coherence / impl[t]-foreign[local]-for-fundamental[foreign[t]].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;
10 struct Local1<S>(Rc<S>);
11
12 impl<T> Remote1<Local> for Box<Rc<T>> {}
13 impl<T, S> Remote1<Local1<S>> for Box<Rc<T>> {}
14 impl<T> Remote1<Box<Local>> for Box<Rc<T>> {}
15 impl<T, S> Remote1<Box<Local1<S>>> for Box<Rc<T>> {}
16
17 fn main() {}