1 #![feature(const_trait_impl)]
5 impl const std::ops::Add for i32 {
6 //~^ ERROR only traits defined in the current crate can be implemented for primitive types
9 fn add(self, rhs: Self) -> Self {
14 impl std::ops::Add for Int {
17 fn add(self, rhs: Self) -> Self {
22 impl const std::ops::Add for Int {
23 //~^ ERROR conflicting implementations of trait
26 fn add(self, rhs: Self) -> Self {