rust/tests/ui/suggestions/issue-85347.rs

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

10 lines
294 B
Rust
Raw Normal View History

2021-05-16 11:33:41 -05:00
use std::ops::Deref;
trait Foo {
type Bar<'a>: Deref<Target = <Self>::Bar<Target = Self>>;
//~^ ERROR associated type takes 1 lifetime argument but 0 lifetime arguments were supplied
//~| ERROR associated type bindings are not allowed here
2021-05-16 11:33:41 -05:00
//~| HELP add missing
}
fn main() {}