rust/tests/ui/higher-rank-trait-bounds/normalize-under-binder/issue-71955.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

80 lines
2.9 KiB
Plaintext
Raw Normal View History

error[E0308]: mismatched types
2022-04-01 12:13:25 -05:00
--> $DIR/issue-71955.rs:45:5
|
LL | foo(bar, "string", |s| s.len() == 5);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
|
2022-09-21 10:57:30 -05:00
= note: expected trait `for<'a, 'b> FnOnce<(&'a &'b str,)>`
found trait `for<'a> FnOnce<(&'a &str,)>`
note: this closure does not fulfill the lifetime requirements
2022-04-01 12:13:25 -05:00
--> $DIR/issue-71955.rs:45:24
|
LL | foo(bar, "string", |s| s.len() == 5);
2022-06-27 00:45:35 -05:00
| ^^^
note: the lifetime requirement is introduced here
2022-04-01 12:13:25 -05:00
--> $DIR/issue-71955.rs:25:9
|
LL | F2: FnOnce(&<F1 as Parser>::Output) -> bool
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
2022-04-01 12:13:25 -05:00
--> $DIR/issue-71955.rs:45:5
|
LL | foo(bar, "string", |s| s.len() == 5);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
|
2022-09-21 10:57:30 -05:00
= note: expected trait `for<'a, 'b> FnOnce<(&'a &'b str,)>`
found trait `for<'a> FnOnce<(&'a &str,)>`
note: this closure does not fulfill the lifetime requirements
2022-04-01 12:13:25 -05:00
--> $DIR/issue-71955.rs:45:24
|
LL | foo(bar, "string", |s| s.len() == 5);
2022-06-27 00:45:35 -05:00
| ^^^
note: the lifetime requirement is introduced here
2022-04-01 12:13:25 -05:00
--> $DIR/issue-71955.rs:25:44
|
LL | F2: FnOnce(&<F1 as Parser>::Output) -> bool
| ^^^^
error[E0308]: mismatched types
2022-04-01 12:13:25 -05:00
--> $DIR/issue-71955.rs:48:5
|
LL | foo(baz, "string", |s| s.0.len() == 5);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
|
2022-09-21 10:57:30 -05:00
= note: expected trait `for<'a, 'b> FnOnce<(&'a Wrapper<'b>,)>`
found trait `for<'a> FnOnce<(&'a Wrapper<'_>,)>`
note: this closure does not fulfill the lifetime requirements
2022-04-01 12:13:25 -05:00
--> $DIR/issue-71955.rs:48:24
|
LL | foo(baz, "string", |s| s.0.len() == 5);
2022-06-27 00:45:35 -05:00
| ^^^
note: the lifetime requirement is introduced here
2022-04-01 12:13:25 -05:00
--> $DIR/issue-71955.rs:25:9
|
LL | F2: FnOnce(&<F1 as Parser>::Output) -> bool
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
2022-04-01 12:13:25 -05:00
--> $DIR/issue-71955.rs:48:5
|
LL | foo(baz, "string", |s| s.0.len() == 5);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
|
2022-09-21 10:57:30 -05:00
= note: expected trait `for<'a, 'b> FnOnce<(&'a Wrapper<'b>,)>`
found trait `for<'a> FnOnce<(&'a Wrapper<'_>,)>`
note: this closure does not fulfill the lifetime requirements
2022-04-01 12:13:25 -05:00
--> $DIR/issue-71955.rs:48:24
|
LL | foo(baz, "string", |s| s.0.len() == 5);
2022-06-27 00:45:35 -05:00
| ^^^
note: the lifetime requirement is introduced here
2022-04-01 12:13:25 -05:00
--> $DIR/issue-71955.rs:25: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`.