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
215 B
Rust
Raw Normal View History

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