]> git.proxmox.com Git - rustc.git/blame - src/librustc_data_structures/captures.rs
New upstream version 1.47.0+dfsg1
[rustc.git] / src / librustc_data_structures / captures.rs
CommitLineData
0531ce1d
XL
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
dc9dc135
XL
6// FIXME(eddyb) false positive, the lifetime parameter is "phantom" but needed.
7#[allow(unused_lifetimes)]
dfeec247 8pub trait Captures<'a> {}
223e47cc 9
dfeec247 10impl<'a, T: ?Sized> Captures<'a> for T {}