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