]> git.proxmox.com Git - rustc.git/blame - src/test/ui/rfc-2632-const-trait-impl/stability.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / rfc-2632-const-trait-impl / stability.stderr
CommitLineData
cdc7bbd5 1error: trait methods cannot be stable const fn
ee023bcb 2 --> $DIR/stability.rs:15:5
74b04a01
XL
3 |
4LL | / fn sub(self, rhs: Self) -> Self {
5LL | |
6LL | | Int(self.0 - rhs.0)
7LL | | }
8 | |_____^
74b04a01 9
1b1a35ee 10error: `<Int as Add>::add` is not yet stable as a const fn
ee023bcb 11 --> $DIR/stability.rs:34:5
74b04a01
XL
12 |
13LL | Int(1i32) + Int(2i32)
14 | ^^^^^^^^^^^^^^^^^^^^^
15 |
c295e0f8 16 = help: const-stable functions can only call other const-stable functions
74b04a01
XL
17
18error: aborting due to 2 previous errors
19