|
| 1 | +error: implementation of `FnOnce` is not general enough |
| 2 | + --> $DIR/ice-106874.rs:8:5 |
| 3 | + | |
| 4 | +LL | A(B(C::new(D::new(move |st| f(st))))) |
| 5 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough |
| 6 | + | |
| 7 | + = note: closure with signature `fn(&'0 mut V)` must implement `FnOnce<(&mut V,)>`, for some specific lifetime `'0`... |
| 8 | + = note: ...but it actually implements `FnOnce<(&'1 mut V,)>`, for some specific lifetime `'1` |
| 9 | + |
| 10 | +error: implementation of `FnOnce` is not general enough |
| 11 | + --> $DIR/ice-106874.rs:8:5 |
| 12 | + | |
| 13 | +LL | A(B(C::new(D::new(move |st| f(st))))) |
| 14 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough |
| 15 | + | |
| 16 | + = note: closure with signature `fn(&'0 mut V)` must implement `FnOnce<(&mut V,)>`, for some specific lifetime `'0`... |
| 17 | + = note: ...but it actually implements `FnOnce<(&'1 mut V,)>`, for some specific lifetime `'1` |
| 18 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 19 | + |
| 20 | +error: implementation of `Fn` is not general enough |
| 21 | + --> $DIR/ice-106874.rs:8:7 |
| 22 | + | |
| 23 | +LL | A(B(C::new(D::new(move |st| f(st))))) |
| 24 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Fn` is not general enough |
| 25 | + | |
| 26 | + = note: closure with signature `fn(&'2 mut V)` must implement `Fn<(&'1 mut V,)>`, for any lifetime `'1`... |
| 27 | + = note: ...but it actually implements `Fn<(&'2 mut V,)>`, for some specific lifetime `'2` |
| 28 | + |
| 29 | +error: implementation of `FnOnce` is not general enough |
| 30 | + --> $DIR/ice-106874.rs:8:7 |
| 31 | + | |
| 32 | +LL | A(B(C::new(D::new(move |st| f(st))))) |
| 33 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough |
| 34 | + | |
| 35 | + = note: closure with signature `fn(&'2 mut V)` must implement `FnOnce<(&'1 mut V,)>`, for any lifetime `'1`... |
| 36 | + = note: ...but it actually implements `FnOnce<(&'2 mut V,)>`, for some specific lifetime `'2` |
| 37 | + |
| 38 | +error: implementation of `Fn` is not general enough |
| 39 | + --> $DIR/ice-106874.rs:8:7 |
| 40 | + | |
| 41 | +LL | A(B(C::new(D::new(move |st| f(st))))) |
| 42 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Fn` is not general enough |
| 43 | + | |
| 44 | + = note: closure with signature `fn(&'2 mut V)` must implement `Fn<(&'1 mut V,)>`, for any lifetime `'1`... |
| 45 | + = note: ...but it actually implements `Fn<(&'2 mut V,)>`, for some specific lifetime `'2` |
| 46 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 47 | + |
| 48 | +error: implementation of `FnOnce` is not general enough |
| 49 | + --> $DIR/ice-106874.rs:8:9 |
| 50 | + | |
| 51 | +LL | A(B(C::new(D::new(move |st| f(st))))) |
| 52 | + | ^^^^^^ implementation of `FnOnce` is not general enough |
| 53 | + | |
| 54 | + = note: closure with signature `fn(&'2 mut V)` must implement `FnOnce<(&'1 mut V,)>`, for any lifetime `'1`... |
| 55 | + = note: ...but it actually implements `FnOnce<(&'2 mut V,)>`, for some specific lifetime `'2` |
| 56 | + |
| 57 | +error: implementation of `Fn` is not general enough |
| 58 | + --> $DIR/ice-106874.rs:8:9 |
| 59 | + | |
| 60 | +LL | A(B(C::new(D::new(move |st| f(st))))) |
| 61 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Fn` is not general enough |
| 62 | + | |
| 63 | + = note: closure with signature `fn(&'2 mut V)` must implement `Fn<(&'1 mut V,)>`, for any lifetime `'1`... |
| 64 | + = note: ...but it actually implements `Fn<(&'2 mut V,)>`, for some specific lifetime `'2` |
| 65 | + |
| 66 | +error: implementation of `FnOnce` is not general enough |
| 67 | + --> $DIR/ice-106874.rs:8:9 |
| 68 | + | |
| 69 | +LL | A(B(C::new(D::new(move |st| f(st))))) |
| 70 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough |
| 71 | + | |
| 72 | + = note: closure with signature `fn(&'2 mut V)` must implement `FnOnce<(&'1 mut V,)>`, for any lifetime `'1`... |
| 73 | + = note: ...but it actually implements `FnOnce<(&'2 mut V,)>`, for some specific lifetime `'2` |
| 74 | + |
| 75 | +error: higher-ranked subtype error |
| 76 | + --> $DIR/ice-106874.rs:8:41 |
| 77 | + | |
| 78 | +LL | A(B(C::new(D::new(move |st| f(st))))) |
| 79 | + | ^ |
| 80 | + |
| 81 | +error: higher-ranked subtype error |
| 82 | + --> $DIR/ice-106874.rs:8:41 |
| 83 | + | |
| 84 | +LL | A(B(C::new(D::new(move |st| f(st))))) |
| 85 | + | ^ |
| 86 | + | |
| 87 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 88 | + |
| 89 | +error: aborting due to 10 previous errors |
| 90 | + |
0 commit comments