summaryrefslogtreecommitdiffstats
path: root/tests/ui/higher-ranked/trait-bounds/normalize-under-binder/issue-71955.migrate.stderr
blob: 0f38f8e3283a278a5a6579706eee58b6e1fe4800 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
error[E0308]: mismatched types
  --> $DIR/issue-71955.rs:54:5
   |
LL |     foo(bar, "string", |s| s.len() == 5);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
   |
   = note: expected type `for<'r, 's> FnOnce<(&'r &'s str,)>`
              found type `for<'r> FnOnce<(&'r &str,)>`
note: this closure does not fulfill the lifetime requirements
  --> $DIR/issue-71955.rs:54:24
   |
LL |     foo(bar, "string", |s| s.len() == 5);
   |                        ^^^^^^^^^^^^^^^^
note: the lifetime requirement is introduced here
  --> $DIR/issue-71955.rs:34:9
   |
LL |     F2: FnOnce(&<F1 as Parser>::Output) -> bool
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
  --> $DIR/issue-71955.rs:54:5
   |
LL |     foo(bar, "string", |s| s.len() == 5);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
   |
   = note: expected type `FnOnce<(&&str,)>`
              found type `for<'r> FnOnce<(&'r &str,)>`
note: this closure does not fulfill the lifetime requirements
  --> $DIR/issue-71955.rs:54:24
   |
LL |     foo(bar, "string", |s| s.len() == 5);
   |                        ^^^^^^^^^^^^^^^^
note: the lifetime requirement is introduced here
  --> $DIR/issue-71955.rs:34:44
   |
LL |     F2: FnOnce(&<F1 as Parser>::Output) -> bool
   |                                            ^^^^

error[E0308]: mismatched types
  --> $DIR/issue-71955.rs:58:5
   |
LL |     foo(baz, "string", |s| s.0.len() == 5);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
   |
   = note: expected type `for<'r, 's> FnOnce<(&'r Wrapper<'s>,)>`
              found type `for<'r> FnOnce<(&'r Wrapper<'_>,)>`
note: this closure does not fulfill the lifetime requirements
  --> $DIR/issue-71955.rs:58:24
   |
LL |     foo(baz, "string", |s| s.0.len() == 5);
   |                        ^^^^^^^^^^^^^^^^^^
note: the lifetime requirement is introduced here
  --> $DIR/issue-71955.rs:34:9
   |
LL |     F2: FnOnce(&<F1 as Parser>::Output) -> bool
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
  --> $DIR/issue-71955.rs:58:5
   |
LL |     foo(baz, "string", |s| s.0.len() == 5);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
   |
   = note: expected type `FnOnce<(&Wrapper<'_>,)>`
              found type `for<'r> FnOnce<(&'r Wrapper<'_>,)>`
note: this closure does not fulfill the lifetime requirements
  --> $DIR/issue-71955.rs:58:24
   |
LL |     foo(baz, "string", |s| s.0.len() == 5);
   |                        ^^^^^^^^^^^^^^^^^^
note: the lifetime requirement is introduced here
  --> $DIR/issue-71955.rs:34:44
   |
LL |     F2: FnOnce(&<F1 as Parser>::Output) -> bool
   |                                            ^^^^

error: aborting due to 4 previous errors

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