]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/bounded-hr-lifetime.rs
Merge commit '63734fcdd718cca089f84c42f3a42c0096cfd431' into sync_cg_clif-2022-05-15
[rust.git] / src / test / rustdoc-ui / bounded-hr-lifetime.rs
1 // This test ensures that rustdoc doesn't panic on higher-ranked lifetimes
2 // with bounds, because an error should have already been emitted by rustc.
3
4 pub fn hrlt<'b, 'c>()
5 where
6     for<'a: 'b + 'c> &'a (): std::fmt::Debug,
7     //~^ ERROR lifetime bounds cannot be used in this context
8 {
9 }