about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2023-11-06 15:47:31 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2023-11-06 15:50:35 +0000
commit58351ae03f19520a586e7c3c1b13e74a9613d1d5 (patch)
tree2cd1c6928dff58b7c5508aeb200a377c5c684066
parent2beca157c96329da93320de83bdb7192bf02fa96 (diff)
downloadrust-58351ae03f19520a586e7c3c1b13e74a9613d1d5.tar.gz
rust-58351ae03f19520a586e7c3c1b13e74a9613d1d5.zip
add test for trivial bound not holding in `soa-derive`
-rw-r--r--tests/ui/late-bound-lifetimes/predicate-is-global.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/late-bound-lifetimes/predicate-is-global.rs b/tests/ui/late-bound-lifetimes/predicate-is-global.rs
index ee4c4706005..be017a3f94f 100644
--- a/tests/ui/late-bound-lifetimes/predicate-is-global.rs
+++ b/tests/ui/late-bound-lifetimes/predicate-is-global.rs
@@ -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() {}