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