Fix rebase
This commit is contained in:
parent
f81734bcaa
commit
4e0437ee8e
1 changed files with 2 additions and 5 deletions
|
|
@ -2,15 +2,12 @@ error: implementation of `Foo` is not general enough
|
|||
--> $DIR/due-to-where-clause.rs:5:5
|
||||
|
|
||||
LL | test::<FooS>(&mut 42);
|
||||
| ^^^^^^^^^^^^ doesn't satisfy where-clause
|
||||
| ^^^^^^^^^^^^ implementation of `Foo` is not general enough
|
||||
...
|
||||
LL | trait Foo<'a> {}
|
||||
| ---------------- trait `Foo` defined here
|
||||
...
|
||||
LL | fn test<'a, F>(data: &'a mut u32) where F: for<'b> Foo<'b> {}
|
||||
| ------------------------------------------------------------- due to a where-clause on `test`...
|
||||
|
|
||||
= note: ...`FooS<'_>` must implement `Foo<'0>`, for any lifetime `'0`...
|
||||
= note: `FooS<'_>` must implement `Foo<'0>`, for any lifetime `'0`...
|
||||
= note: ...but `FooS<'_>` actually implements `Foo<'1>`, for some specific lifetime `'1`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue