about summary refs log tree commit diff
path: root/tests/ui/higher-ranked/higher-ranked-lifetime-equality.stderr
blob: 8c0d66bb0bc1f78bb7c2fef1c55109f062bfc502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error[E0308]: mismatched types
  --> $DIR/higher-ranked-lifetime-equality.rs:34:25
   |
LL |     let foo: Foo<Two> = foo;
   |                         ^^^ one type is more general than the other
   |
   = note: expected struct `my_api::Foo<for<'a, 'b> fn(&'a (), &'b ())>`
              found struct `my_api::Foo<for<'a> fn(&'a (), &'a ())>`

error[E0308]: mismatched types
  --> $DIR/higher-ranked-lifetime-equality.rs:34:25
   |
LL |     let foo: Foo<Two> = foo;
   |                         ^^^ one type is more general than the other
   |
   = note: expected struct `my_api::Foo<for<'a, 'b> fn(&'a (), &'b ())>`
              found struct `my_api::Foo<for<'a> fn(&'a (), &'a ())>`
   = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`

error: aborting due to 2 previous errors

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