]> git.lizzy.rs Git - rust.git/blob - tests/ui/coherence/impl[t]-foreign[t]-for-fundamental.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / coherence / impl[t]-foreign[t]-for-fundamental.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<T> for Box<T> {
11     //~^ ERROR type parameter `T` must be used as the type parameter for some local type
12 }
13
14 impl<'a, A, B> Remote1<A> for &'a B {
15     //~^ ERROR type parameter `B` must be used as the type parameter for some local type
16 }
17
18 fn main() {}