rust/tests/ui/compare-method/region-extra-2.stderr

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

18 lines
682 B
Plaintext
Raw Normal View History

error[E0276]: impl has stricter requirements than trait
--> $DIR/region-extra-2.rs:9:53
|
2018-02-22 18:42:32 -06:00
LL | fn renew<'b: 'a>(self) -> &'b mut [T];
| -------------------------------------- definition of `renew` from trait
...
2018-02-22 18:42:32 -06:00
LL | fn renew<'b: 'a>(self) -> &'b mut [T] where 'a: 'b {
| ^^ impl has extra requirement `'a: 'b`
|
help: copy the `where` clause predicates from the trait
|
LL | fn renew<'b: 'a>(self) -> &'b mut [T] where 'b: 'a {
| ~~~~~~~~~~~~
error: aborting due to previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0276`.