]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/bounded-hr-lifetime.rs
Auto merge of #107840 - matthiaskrgr:rollup-e6v7x0a, r=matthiaskrgr
[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 }