fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
487 B12 linesraw
1error[E0276]: impl has stricter requirements than trait
2  --> $DIR/issue-14853.rs:12:5
3   |
4LL |     fn yay<T: Debug>(_: Option<Self>, thing: &[T]);
5   |     ----------------------------------------------- definition of `yay` from trait
6...
7LL |     fn yay<T: Str>(_:Option<X>, thing: &[T]) {
8   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: Str`
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0276`.