fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0723]: trait methods cannot be stable const fn 2 --> $DIR/stability.rs:14:5 3 | 4LL | / fn sub(self, rhs: Self) -> Self { 5LL | | 6LL | | Int(self.0 - rhs.0) 7LL | | } 8 | |_____^ 9 | 10 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information 11 = help: add `#![feature(const_fn)]` to the crate attributes to enable 12 13error[E0723]: can only call other `const fn` within a `const fn`, but `const <Int as std::ops::Add>::add` is not stable as `const fn` 14 --> $DIR/stability.rs:32:5 15 | 16LL | Int(1i32) + Int(2i32) 17 | ^^^^^^^^^^^^^^^^^^^^^ 18 | 19 = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information 20 = help: add `#![feature(const_fn)]` to the crate attributes to enable 21 22error: aborting due to 2 previous errors 23 24For more information about this error, try `rustc --explain E0723`.