]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/impl-foreign-for-locally-defined-fundamental[foreign].rs
Merge commit 'ea199bacef07213dbe008841b89c450e3bf0c638' into rustfmt-sync
[rust.git] / src / test / ui / coherence / impl-foreign-for-locally-defined-fundamental[foreign].rs
1 #![feature(fundamental)]
2
3 // compile-flags:--crate-name=test
4 // aux-build:coherence_lib.rs
5 // check-pass
6
7 extern crate coherence_lib as lib;
8 use lib::*;
9
10 #[fundamental]
11 struct MyBox<T>(T);
12
13 impl<T> Remote for MyBox<T> {}
14
15 fn main() {}