fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/rfc1623-2.rs:28:8 3 | 4LL | f: &id, 5 | ^^^ one type is more general than the other 6 | 7 = note: expected trait `for<'a, 'b> Fn<(&'a Foo<'b>,)>` 8 found trait `Fn<(&Foo<'_>,)>` 9 10error[E0308]: mismatched types 11 --> $DIR/rfc1623-2.rs:28:8 12 | 13LL | f: &id, 14 | ^^^ one type is more general than the other 15 | 16 = note: expected trait `for<'a, 'b> Fn<(&'a Foo<'b>,)>` 17 found trait `Fn<(&Foo<'_>,)>` 18 19error: implementation of `FnOnce` is not general enough 20 --> $DIR/rfc1623-2.rs:28:8 21 | 22LL | f: &id, 23 | ^^^ implementation of `FnOnce` is not general enough 24 | 25 = note: `fn(&'2 Foo<'_>) -> &'2 Foo<'_> {id::<&'2 Foo<'_>>}` must implement `FnOnce<(&'1 Foo<'b>,)>`, for any lifetime `'1`... 26 = note: ...but it actually implements `FnOnce<(&'2 Foo<'_>,)>`, for some specific lifetime `'2` 27 28error: implementation of `FnOnce` is not general enough 29 --> $DIR/rfc1623-2.rs:28:8 30 | 31LL | f: &id, 32 | ^^^ implementation of `FnOnce` is not general enough 33 | 34 = note: `fn(&Foo<'2>) -> &Foo<'2> {id::<&Foo<'2>>}` must implement `FnOnce<(&'a Foo<'1>,)>`, for any lifetime `'1`... 35 = note: ...but it actually implements `FnOnce<(&Foo<'2>,)>`, for some specific lifetime `'2` 36 37error: aborting due to 4 previous errors 38 39For more information about this error, try `rustc --explain E0308`.