mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
Point at bounds when comparing impl items to trait
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
error[E0276]: impl has stricter requirements than trait
|
||||
--> $DIR/E0276.rs:6:5
|
||||
--> $DIR/E0276.rs:6:30
|
||||
|
|
||||
LL | fn foo<T>(x: T);
|
||||
| ---------------- definition of `foo` from trait
|
||||
...
|
||||
LL | fn foo<T>(x: T) where T: Copy {}
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: Copy`
|
||||
| ^^^^ impl has extra requirement `T: Copy`
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
||||
Reference in New Issue
Block a user