rust/tests/rustdoc-ui/unable-fulfill-trait.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
218 B
Rust
Raw Normal View History

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