]> git.lizzy.rs Git - rust.git/blob - src/test/ui/coherence/impl[t]-foreign[local]-for-fundamental[t].rs
Rollup merge of #101975 - chenyukang:fix-101749, r=compiler-errors
[rust.git] / src / test / ui / coherence / impl[t]-foreign[local]-for-fundamental[t].rs
1 // compile-flags:--crate-name=test
2 // aux-build:coherence_lib.rs
3
4 extern crate coherence_lib as lib;
5 use lib::*;
6 use std::rc::Rc;
7
8 struct Local;
9
10 impl<T> Remote1<Local> for Box<T> {
11     //~^ ERROR type parameter `T` must be covered by another type
12 }
13
14 impl<T> Remote1<Local> for &T {
15     //~^ ERROR type parameter `T` must be covered by another type
16 }
17
18 fn main() {}