Skip to content

Commit

Permalink
add test for trivial bound not holding in soa-derive
Browse files Browse the repository at this point in the history
  • Loading branch information
lqd committed Nov 6, 2023
1 parent 2beca15 commit 58351ae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/ui/late-bound-lifetimes/predicate-is-global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 29,12 @@ impl Inherent {
fn inherent(&self) {}
}

// This trivial bound doesn't hold, but the unused lifetime tripped up that check after #117589, and
// showed up in its crater results (in `soa-derive 0.13.0`).
fn do_it()
where
for<'a> Inherent: Clone,
{
}

fn main() {}

0 comments on commit 58351ae

Please sign in to comment.