summaryrefslogtreecommitdiffstats
path: root/src/test/ui/coherence/auxiliary/re_rebalance_coherence_lib-rpass.rs
blob: 9a191bad8b0bf1a9ea91929b79b10dd9c29adff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
pub trait Backend {}
pub trait SupportsDefaultKeyword {}

impl SupportsDefaultKeyword for Postgres {}

pub struct Postgres;

impl Backend for Postgres {}

pub struct AstPass<DB>(::std::marker::PhantomData<DB>);

pub trait QueryFragment<DB: Backend> {}


#[derive(Debug, Clone, Copy)]
pub struct BatchInsert<'a, T: 'a, Tab> {
    _marker: ::std::marker::PhantomData<(&'a T, Tab)>,
}

impl<'a, T:'a, Tab, DB> QueryFragment<DB> for BatchInsert<'a, T, Tab>
where DB: SupportsDefaultKeyword + Backend,
{}

pub trait LibToOwned {
    type Owned;
}

pub struct LibCow<T: LibToOwned, Owned = <T as LibToOwned>::Owned> {
    pub t: T,
    pub o: Owned,
}