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.

14 lines
216 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,>,
//~^ ERROR
//~^^ ERROR
}
pub trait Bar<'x, 's, U>
where U: 'x,
Self:'x,
Self:'s
{}