Unrolled build for #135914 · rust-lang/rust@5f929e7 (original) (raw)

1

``

`` -

error: implementation of FnOnce is not general enough

``

``

1

`` +

error: implementation of Parser is not general enough

``

2

2

` --> $DIR/issue-71955.rs:45:5

`

3

3

` |

`

4

4

`LL | foo(bar, "string", |s| s.len() == 5);

`

5

``

`` -

| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of FnOnce is not general enough

``

``

5

`` +

| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of Parser is not general enough

``

6

6

` |

`

7

``

`` -

= note: closure with signature for<'a> fn(&'a &'2 str) -> bool must implement FnOnce<(&&'1 str,)>, for any lifetime '1...

``

8

``

`` -

= note: ...but it actually implements FnOnce<(&&'2 str,)>, for some specific lifetime '2

``

``

7

`` +

= note: for<'a> fn(&'a str) -> (&'a str, &'a str) {bar} must implement Parser<'0>, for any lifetime '0...

``

``

8

`` +

= note: ...but it actually implements Parser<'1>, for some specific lifetime '1

``

9

9

``

10

``

`` -

error: implementation of FnOnce is not general enough

``

``

10

`` +

error: implementation of Parser is not general enough

``

11

11

` --> $DIR/issue-71955.rs:45:5

`

12

12

` |

`

13

13

`LL | foo(bar, "string", |s| s.len() == 5);

`

14

``

`` -

| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of FnOnce is not general enough

``

``

14

`` +

| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of Parser is not general enough

``

15

15

` |

`

16

``

`` -

= note: closure with signature for<'a> fn(&'a &'2 str) -> bool must implement FnOnce<(&&'1 str,)>, for any lifetime '1...

``

17

``

`` -

= note: ...but it actually implements FnOnce<(&&'2 str,)>, for some specific lifetime '2

``

``

16

`` +

= note: for<'a> fn(&'a str) -> (&'a str, &'a str) {bar} must implement Parser<'0>, for any lifetime '0...

``

``

17

`` +

= note: ...but it actually implements Parser<'1>, for some specific lifetime '1

``

18

18

`` = note: duplicate diagnostic emitted due to -Z deduplicate-diagnostics=no

``

19

19

``

20

``

`` -

error: implementation of FnOnce is not general enough

``

``

20

`` +

error: implementation of Parser is not general enough

``

21

21

` --> $DIR/issue-71955.rs:48:5

`

22

22

` |

`

23

23

`LL | foo(baz, "string", |s| s.0.len() == 5);

`

24

``

`` -

| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of FnOnce is not general enough

``

``

24

`` +

| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of Parser is not general enough

``

25

25

` |

`

26

``

`` -

= note: closure with signature for<'a> fn(&'a Wrapper<'2>) -> bool must implement FnOnce<(&Wrapper<'1>,)>, for any lifetime '1...

``

27

``

`` -

= note: ...but it actually implements FnOnce<(&Wrapper<'2>,)>, for some specific lifetime '2

``

``

26

`` +

= note: for<'a> fn(&'a str) -> (&'a str, Wrapper<'a>) {baz} must implement Parser<'0>, for any lifetime '0...

``

``

27

`` +

= note: ...but it actually implements Parser<'1>, for some specific lifetime '1

``

28

28

``

29

``

`` -

error: implementation of FnOnce is not general enough

``

``

29

`` +

error: implementation of Parser is not general enough

``

30

30

` --> $DIR/issue-71955.rs:48:5

`

31

31

` |

`

32

32

`LL | foo(baz, "string", |s| s.0.len() == 5);

`

33

``

`` -

| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of FnOnce is not general enough

``

``

33

`` +

| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of Parser is not general enough

``

34

34

` |

`

35

``

`` -

= note: closure with signature for<'a> fn(&'a Wrapper<'2>) -> bool must implement FnOnce<(&Wrapper<'1>,)>, for any lifetime '1...

``

36

``

`` -

= note: ...but it actually implements FnOnce<(&Wrapper<'2>,)>, for some specific lifetime '2

``

``

35

`` +

= note: for<'a> fn(&'a str) -> (&'a str, Wrapper<'a>) {baz} must implement Parser<'0>, for any lifetime '0...

``

``

36

`` +

= note: ...but it actually implements Parser<'1>, for some specific lifetime '1

``

37

37

`` = note: duplicate diagnostic emitted due to -Z deduplicate-diagnostics=no

``

38

38

``

39

39

`error: aborting due to 4 previous errors

`