1 #![feature(const_trait_impl)]
4 fn plus(self, rhs: Self) -> Self;
7 impl const Plus for i32 {
8 fn plus(self, rhs: Self) -> Self {
14 fn plus(self, rhs: Self) -> Self {
19 pub const fn add_i32(a: i32, b: i32) -> i32 {
23 pub const fn add_u32(a: u32, b: u32) -> u32 {
25 //~^ ERROR the trait bound
26 //~| ERROR cannot call non-const fn