summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/bounded-hr-lifetime.rs
blob: b2e000b9757409dd2d892a86f9bc3ff37d0b3d15 (plain)
1
2
3
4
5
6
7
8
9
// This test ensures that rustdoc doesn't panic on higher-ranked lifetimes
// with bounds, because an error should have already been emitted by rustc.

pub fn hrlt<'b, 'c>()
where
    for<'a: 'b + 'c> &'a (): std::fmt::Debug,
    //~^ ERROR lifetime bounds cannot be used in this context
{
}