fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/issue-71955.rs:45:5 3 | 4LL | foo(bar, "string", |s| s.len() == 5); 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other 6 | 7 = note: expected trait `for<'a, 'b> FnOnce<(&'a &'b str,)>` 8 found trait `for<'a> FnOnce<(&'a &str,)>` 9note: this closure does not fulfill the lifetime requirements 10 --> $DIR/issue-71955.rs:45:24 11 | 12LL | foo(bar, "string", |s| s.len() == 5); 13 | ^^^ 14note: the lifetime requirement is introduced here 15 --> $DIR/issue-71955.rs:25:9 16 | 17LL | F2: FnOnce(&<F1 as Parser>::Output) -> bool 18 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 19 20error[E0308]: mismatched types 21 --> $DIR/issue-71955.rs:45:5 22 | 23LL | foo(bar, "string", |s| s.len() == 5); 24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other 25 | 26 = note: expected trait `for<'a, 'b> FnOnce<(&'a &'b str,)>` 27 found trait `for<'a> FnOnce<(&'a &str,)>` 28note: this closure does not fulfill the lifetime requirements 29 --> $DIR/issue-71955.rs:45:24 30 | 31LL | foo(bar, "string", |s| s.len() == 5); 32 | ^^^ 33note: the lifetime requirement is introduced here 34 --> $DIR/issue-71955.rs:25:44 35 | 36LL | F2: FnOnce(&<F1 as Parser>::Output) -> bool 37 | ^^^^ 38 39error[E0308]: mismatched types 40 --> $DIR/issue-71955.rs:48:5 41 | 42LL | foo(baz, "string", |s| s.0.len() == 5); 43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other 44 | 45 = note: expected trait `for<'a, 'b> FnOnce<(&'a Wrapper<'b>,)>` 46 found trait `for<'a> FnOnce<(&'a Wrapper<'_>,)>` 47note: this closure does not fulfill the lifetime requirements 48 --> $DIR/issue-71955.rs:48:24 49 | 50LL | foo(baz, "string", |s| s.0.len() == 5); 51 | ^^^ 52note: the lifetime requirement is introduced here 53 --> $DIR/issue-71955.rs:25:9 54 | 55LL | F2: FnOnce(&<F1 as Parser>::Output) -> bool 56 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 57 58error[E0308]: mismatched types 59 --> $DIR/issue-71955.rs:48:5 60 | 61LL | foo(baz, "string", |s| s.0.len() == 5); 62 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other 63 | 64 = note: expected trait `for<'a, 'b> FnOnce<(&'a Wrapper<'b>,)>` 65 found trait `for<'a> FnOnce<(&'a Wrapper<'_>,)>` 66note: this closure does not fulfill the lifetime requirements 67 --> $DIR/issue-71955.rs:48:24 68 | 69LL | foo(baz, "string", |s| s.0.len() == 5); 70 | ^^^ 71note: the lifetime requirement is introduced here 72 --> $DIR/issue-71955.rs:25:44 73 | 74LL | F2: FnOnce(&<F1 as Parser>::Output) -> bool 75 | ^^^^ 76 77error: aborting due to 4 previous errors 78 79For more information about this error, try `rustc --explain E0308`.