]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-21974.stderr
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-21974.stderr
1 error[E0283]: type annotations required: cannot resolve `&'a T: Foo`
2   --> $DIR/issue-21974.rs:10:1
3    |
4 LL | / fn foo<'a,'b,T>(x: &'a T, y: &'b T) //~ ERROR type annotations required
5 LL | |     where &'a T : Foo,
6 LL | |           &'b T : Foo
7 LL | | {
8 LL | |     x.foo();
9 LL | |     y.foo();
10 LL | | }
11    | |_^
12    |
13 note: required by `Foo`
14   --> $DIR/issue-21974.rs:6:1
15    |
16 LL | trait Foo {
17    | ^^^^^^^^^
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0283`.