rust/src/test/ui/error-codes/E0276.stderr

13 lines
427 B
Plaintext
Raw Normal View History

2018-02-07 21:35:35 -06:00
error[E0276]: impl has stricter requirements than trait
2018-12-25 09:56:47 -06:00
--> $DIR/E0276.rs:6:5
2018-02-07 21:35:35 -06:00
|
2018-02-22 18:42:32 -06:00
LL | fn foo<T>(x: T);
2018-02-07 21:35:35 -06:00
| ---------------- definition of `foo` from trait
...
2018-02-22 18:42:32 -06:00
LL | fn foo<T>(x: T) where T: Copy {} //~ ERROR E0276
2018-02-07 21:35:35 -06:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: std::marker::Copy`
error: aborting due to previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0276`.