]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_data_structures/src/captures.rs
Auto merge of #85971 - FabianWolff:issue-85586, r=davidtwco
[rust.git] / compiler / rustc_data_structures / src / captures.rs
1 /// "Signaling" trait used in impl trait to tag lifetimes that you may
2 /// need to capture but don't really need for other reasons.
3 /// Basically a workaround; see [this comment] for details.
4 ///
5 /// [this comment]: https://github.com/rust-lang/rust/issues/34511#issuecomment-373423999
6 pub trait Captures<'a> {}
7
8 impl<'a, T: ?Sized> Captures<'a> for T {}