granite-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.

15 lines
203 B
Rust
Raw Permalink Normal View History

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