fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
861 B19 linesraw
1error: `impl` item signature doesn't match `trait` item signature
2  --> $DIR/param-without-lifetime-constraint.rs:14:5
3   |
4LL |     fn get_relation(&self) -> To;
5   |     ----------------------------- expected `fn(&'1 Article) -> &'2 ProofReader`
6...
7LL |     fn get_relation(&self) -> &ProofReader {
8   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ found `fn(&'1 Article) -> &'1 ProofReader`
9   |
10   = note: expected signature `fn(&'1 Article) -> &'2 ProofReader`
11              found signature `fn(&'1 Article) -> &'1 ProofReader`
12help: the lifetime requirements from the `impl` do not correspond to the requirements in the `trait`
13  --> $DIR/param-without-lifetime-constraint.rs:10:31
14   |
15LL |     fn get_relation(&self) -> To;
16   |                               ^^ consider borrowing this type parameter in the trait
17
18error: aborting due to previous error
19