summaryrefslogtreecommitdiffstats
path: root/tests/ui/implied-bounds/auxiliary/bevy_ecs.rs
blob: b373d39f4d940ed88a361664219a49b6faaebd27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Related to Bevy regression #118553

pub trait WorldQuery {}
impl WorldQuery for &u8 {}

pub struct Query<Q: WorldQuery>(Q);

pub trait SystemParam {
    type State;
}
impl<Q: WorldQuery + 'static> SystemParam for Query<Q> {
    type State = ();
    // `Q: 'static` is required because we need the TypeId of Q ...
}

pub struct ParamSet<T: SystemParam>(T)
where
    T::State: Sized;