]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/bounded-hr-lifetime.rs
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / 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 }