2016-10-19 21:17:35 +00:00
|
|
|
error[E0276]: impl has stricter requirements than trait
|
2021-10-06 12:27:42 +00:00
|
|
|
--> $DIR/traits-misc-mismatch-1.rs:27:26
|
2016-10-19 21:17:35 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn test_error1_fn<T: Eq>(&self);
|
2016-10-19 21:17:35 +00:00
|
|
|
| -------------------------------- definition of `test_error1_fn` from trait
|
|
|
|
...
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn test_error1_fn<T: Ord>(&self) {}
|
2021-10-06 12:27:42 +00:00
|
|
|
| ^^^ impl has extra requirement `T: Ord`
|
2016-10-19 21:17:35 +00:00
|
|
|
|
|
|
|
error[E0276]: impl has stricter requirements than trait
|
2021-10-06 12:27:42 +00:00
|
|
|
--> $DIR/traits-misc-mismatch-1.rs:31:31
|
2016-10-19 21:17:35 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn test_error2_fn<T: Eq + Ord>(&self);
|
2016-10-19 21:17:35 +00:00
|
|
|
| -------------------------------------- definition of `test_error2_fn` from trait
|
|
|
|
...
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn test_error2_fn<T: Eq + B>(&self) {}
|
2021-10-06 12:27:42 +00:00
|
|
|
| ^ impl has extra requirement `T: B`
|
2016-10-19 21:17:35 +00:00
|
|
|
|
|
|
|
error[E0276]: impl has stricter requirements than trait
|
2021-10-06 12:27:42 +00:00
|
|
|
--> $DIR/traits-misc-mismatch-1.rs:35:26
|
2016-10-19 21:17:35 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn test_error3_fn<T: Eq + Ord>(&self);
|
2016-10-19 21:17:35 +00:00
|
|
|
| -------------------------------------- definition of `test_error3_fn` from trait
|
|
|
|
...
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn test_error3_fn<T: B + Eq>(&self) {}
|
2021-10-06 12:27:42 +00:00
|
|
|
| ^ impl has extra requirement `T: B`
|
2016-10-19 21:17:35 +00:00
|
|
|
|
|
|
|
error[E0276]: impl has stricter requirements than trait
|
2021-10-06 12:27:42 +00:00
|
|
|
--> $DIR/traits-misc-mismatch-1.rs:45:26
|
2016-10-19 21:17:35 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn test_error5_fn<T: A>(&self);
|
2016-10-19 21:17:35 +00:00
|
|
|
| ------------------------------- definition of `test_error5_fn` from trait
|
|
|
|
...
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn test_error5_fn<T: B>(&self) {}
|
2021-10-06 12:27:42 +00:00
|
|
|
| ^ impl has extra requirement `T: B`
|
2016-10-19 21:17:35 +00:00
|
|
|
|
|
|
|
error[E0276]: impl has stricter requirements than trait
|
2021-10-06 12:27:42 +00:00
|
|
|
--> $DIR/traits-misc-mismatch-1.rs:51:30
|
2016-10-19 21:17:35 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn test_error7_fn<T: A>(&self);
|
2016-10-19 21:17:35 +00:00
|
|
|
| ------------------------------- definition of `test_error7_fn` from trait
|
|
|
|
...
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn test_error7_fn<T: A + Eq>(&self) {}
|
2021-10-06 12:27:42 +00:00
|
|
|
| ^^ impl has extra requirement `T: Eq`
|
2016-10-19 21:17:35 +00:00
|
|
|
|
|
|
|
error[E0276]: impl has stricter requirements than trait
|
2021-10-06 12:27:42 +00:00
|
|
|
--> $DIR/traits-misc-mismatch-1.rs:54:26
|
2016-10-19 21:17:35 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn test_error8_fn<T: B>(&self);
|
2016-10-19 21:17:35 +00:00
|
|
|
| ------------------------------- definition of `test_error8_fn` from trait
|
|
|
|
...
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn test_error8_fn<T: C>(&self) {}
|
2021-10-06 12:27:42 +00:00
|
|
|
| ^ impl has extra requirement `T: C`
|
2016-10-19 21:17:35 +00:00
|
|
|
|
|
|
|
error[E0276]: impl has stricter requirements than trait
|
2021-10-06 12:27:42 +00:00
|
|
|
--> $DIR/traits-misc-mismatch-1.rs:67:18
|
2016-10-19 21:17:35 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn method<G:Getter<isize>>(&self);
|
2016-10-19 21:17:35 +00:00
|
|
|
| ---------------------------------- definition of `method` from trait
|
|
|
|
...
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | fn method<G: Getter<usize>>(&self) {}
|
2021-10-06 12:27:42 +00:00
|
|
|
| ^^^^^^^^^^^^^ impl has extra requirement `G: Getter<usize>`
|
2016-10-19 21:17:35 +00:00
|
|
|
|
2017-07-02 10:49:30 +00:00
|
|
|
error: aborting due to 7 previous errors
|
2016-10-19 21:17:35 +00:00
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0276`.
|