]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/impl-foreign-for-locally-defined-fundamental.rs
Rollup merge of #104773 - oli-obk:overlap, r=lcnr
[rust.git] / src / test / ui / coherence / impl-foreign-for-locally-defined-fundamental.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 Local<T>(T);
12
13 impl Remote for Local<()> {}
14
15 fn main() {}