]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/impl-foreign-for-fundamental[local].rs
Rollup merge of #104744 - notriddle:notriddle/struct-fields-display-block, r=Guillaum...
[rust.git] / src / test / ui / coherence / impl-foreign-for-fundamental[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;
10 struct Local1<T>(Rc<T>);
11
12 impl Remote for Box<Local> {}
13 impl<T> Remote for Box<Local1<T>> {}
14
15 fn main() {}