a5b639dc01
Consider `tests/ui/const-generics/generic_const_exprs/issue-102768.stderr`, the error message where it gives additional notes about where the associated type is defined, and how the dead code lint doesn't have an article, like in `tests/ui/lint/dead-code/issue-85255.stderr`. They don't have articles, so it seems unnecessary to have one here.
10 lines
294 B
Rust
10 lines
294 B
Rust
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
|
|
//~| HELP add missing
|
|
}
|
|
|
|
fn main() {}
|