2022-12-08 13:46:51 +01:00
|
|
|
// This test ensures that it's not crashing rustdoc.
|
|
|
|
|
|
|
|
pub struct Foo<'a, 'b, T> {
|
2024-05-28 16:05:13 +00:00
|
|
|
field1: dyn Bar<'a, 'b>,
|
2022-12-08 13:46:51 +01:00
|
|
|
//~^ ERROR
|
2023-10-31 13:58:03 +00:00
|
|
|
//~| ERROR
|
2022-12-08 13:46:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
pub trait Bar<'x, 's, U>
|
2024-05-28 16:05:13 +00:00
|
|
|
where
|
|
|
|
U: 'x,
|
|
|
|
Self: 'x,
|
|
|
|
Self: 's,
|
|
|
|
{
|
|
|
|
}
|