]>
git.proxmox.com Git - rustc.git/blob - tests/ui/rfc-2632-const-trait-impl/call-const-trait-method-fail.rs
1 #![feature(const_trait_impl)]
5 fn plus(self, rhs
: Self) -> Self;
8 impl const Plus
for i32 {
9 fn plus(self, rhs
: Self) -> Self {
15 fn plus(self, rhs
: Self) -> Self {
20 pub const fn add_i32(a
: i32, b
: i32) -> i32 {
24 pub const fn add_u32(a
: u32, b
: u32) -> u32 {
26 //~^ ERROR the trait bound