summary refs log tree commit diff
path: root/src/test/ui/issue-21974.stderr
blob: 4cc28c9ceb5085124df34dc69d221358ce3969d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
error[E0283]: type annotations required: cannot resolve `&'a T: Foo`
  --> $DIR/issue-21974.rs:20:1
   |
LL | / fn foo<'a,'b,T>(x: &'a T, y: &'b T) //~ ERROR type annotations required
LL | |     where &'a T : Foo,
LL | |           &'b T : Foo
LL | | {
LL | |     x.foo();
LL | |     y.foo();
LL | | }
   | |_^
   |
note: required by `Foo`
  --> $DIR/issue-21974.rs:16:1
   |
LL | trait Foo {
   | ^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0283`.