1 #![allow(incomplete_features)]
2 #![feature(const_trait_impl)]
6 impl const std::ops::Add for i32 {
7 //~^ ERROR conflicting implementations of trait
8 //~| ERROR only traits defined in the current crate can be implemented for arbitrary types
11 fn add(self, rhs: Self) -> Self {
16 impl std::ops::Add for Int {
19 fn add(self, rhs: Self) -> Self {
24 impl const std::ops::Add for Int {
25 //~^ ERROR conflicting implementations of trait
28 fn add(self, rhs: Self) -> Self {