1 error[E0117]: only traits defined in the current crate can be implemented for primitive types
2 --> $DIR/const-and-non-const-impl.rs:5:1
4 LL | impl const std::ops::Add for i32 {
5 | ^^^^^^^^^^^-------------^^^^^---
7 | | | `i32` is not defined in the current crate
8 | | `i32` is not defined in the current crate
9 | impl doesn't use only types from inside the current crate
11 = note: define and implement a trait or new type instead
13 error[E0119]: conflicting implementations of trait `std::ops::Add` for type `Int`
14 --> $DIR/const-and-non-const-impl.rs:22:1
16 LL | impl std::ops::Add for Int {
17 | -------------------------- first implementation here
19 LL | impl const std::ops::Add for Int {
20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `Int`
22 error: aborting due to 2 previous errors
24 Some errors have detailed explanations: E0117, E0119.
25 For more information about an error, try `rustc --explain E0117`.