]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/bounded-hr-lifetime.rs
Merge commit 'f2cdd4a78d89c009342197cf5844a21f8aa813df' into sync_cg_clif-2022-04-22
[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 }