2021-09-02 11:54:32 -05:00
|
|
|
// 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,
|
2023-12-20 01:06:36 -06:00
|
|
|
//~^ ERROR bounds cannot be used in this context
|
2021-09-02 11:54:32 -05:00
|
|
|
{
|
|
|
|
}
|