1 error[E0369]: cannot add `T` to `T`
2 --> $DIR/missing_trait_impl.rs:5:15
9 help: consider restricting type parameter `T`
11 LL | fn foo<T: std::ops::Add>(x: T, y: T) {
14 error[E0368]: binary assignment operation `+=` cannot be applied to type `T`
15 --> $DIR/missing_trait_impl.rs:9:5
20 | cannot use `+=` on type `T`
22 help: consider restricting type parameter `T`
24 LL | fn bar<T: std::ops::AddAssign>(x: T) {
25 | +++++++++++++++++++++
27 error[E0600]: cannot apply unary operator `-` to type `T`
28 --> $DIR/missing_trait_impl.rs:13:13
31 | ^^ cannot apply unary operator `-`
33 help: consider restricting type parameter `T`
35 LL | fn baz<T: std::ops::Neg>(x: T) {
38 error[E0600]: cannot apply unary operator `!` to type `T`
39 --> $DIR/missing_trait_impl.rs:14:13
42 | ^^ cannot apply unary operator `!`
44 help: consider restricting type parameter `T`
46 LL | fn baz<T: std::ops::Not>(x: T) {
49 error[E0614]: type `T` cannot be dereferenced
50 --> $DIR/missing_trait_impl.rs:15:13
55 error: aborting due to 5 previous errors
57 Some errors have detailed explanations: E0368, E0369, E0600, E0614.
58 For more information about an error, try `rustc --explain E0368`.