2018-07-15 21:11:54 +00:00
|
|
|
error[E0276]: impl has stricter requirements than trait
|
2021-10-06 12:27:42 +00:00
|
|
|
--> $DIR/issue-14853.rs:12:15
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | fn yay<T: Debug>(_: Option<Self>, thing: &[T]);
|
|
|
|
| ----------------------------------------------- definition of `yay` from trait
|
|
|
|
...
|
|
|
|
LL | fn yay<T: Str>(_:Option<X>, thing: &[T]) {
|
2021-10-06 12:27:42 +00:00
|
|
|
| ^^^ impl has extra requirement `T: Str`
|
2018-07-15 21:11:54 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0276`.
|