]>
Commit | Line | Data |
---|---|---|
2c00a5a8 | 1 | error[E0276]: impl has stricter requirements than trait |
3c0e092e | 2 | --> $DIR/E0276.rs:6:30 |
2c00a5a8 | 3 | | |
0531ce1d | 4 | LL | fn foo<T>(x: T); |
2c00a5a8 XL |
5 | | ---------------- definition of `foo` from trait |
6 | ... | |
532ac7d7 | 7 | LL | fn foo<T>(x: T) where T: Copy {} |
3c0e092e | 8 | | ^^^^ impl has extra requirement `T: Copy` |
2c00a5a8 XL |
9 | |
10 | error: aborting due to previous error | |
11 | ||
0531ce1d | 12 | For more information about this error, try `rustc --explain E0276`. |