]>
Commit | Line | Data |
---|---|---|
cdc7bbd5 | 1 | error: trait methods cannot be stable const fn |
ee023bcb | 2 | --> $DIR/stability.rs:15:5 |
74b04a01 XL |
3 | | |
4 | LL | / fn sub(self, rhs: Self) -> Self { | |
5 | LL | | | |
6 | LL | | Int(self.0 - rhs.0) | |
7 | LL | | } | |
8 | | |_____^ | |
74b04a01 | 9 | |
1b1a35ee | 10 | error: `<Int as Add>::add` is not yet stable as a const fn |
ee023bcb | 11 | --> $DIR/stability.rs:34:5 |
74b04a01 XL |
12 | | |
13 | LL | Int(1i32) + Int(2i32) | |
14 | | ^^^^^^^^^^^^^^^^^^^^^ | |
15 | | | |
c295e0f8 | 16 | = help: const-stable functions can only call other const-stable functions |
74b04a01 XL |
17 | |
18 | error: aborting due to 2 previous errors | |
19 |