]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-consts/defaults-not-assumed-fail.stderr
New upstream version 1.57.0+dfsg1
[rustc.git] / src / test / ui / associated-consts / defaults-not-assumed-fail.stderr
CommitLineData
74b04a01
XL
1error: any use of this value will cause an error
2 --> $DIR/defaults-not-assumed-fail.rs:8:19
3 |
4LL | const B: u8 = Self::A + 1;
5 | --------------^^^^^^^^^^^-
6 | |
1b1a35ee 7 | attempt to compute `u8::MAX + 1_u8`, which would overflow
74b04a01
XL
8 |
9 = note: `#[deny(const_err)]` on by default
5869c6ff
XL
10 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
11 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
74b04a01 12
5869c6ff
XL
13error[E0080]: evaluation of constant value failed
14 --> $DIR/defaults-not-assumed-fail.rs:34:16
74b04a01
XL
15 |
16LL | assert_eq!(<() as Tr>::B, 0); // causes the error above
5869c6ff 17 | ^^^^^^^^^^^^^ referenced constant has errors
74b04a01
XL
18
19error: erroneous constant used
5869c6ff 20 --> $DIR/defaults-not-assumed-fail.rs:34:5
74b04a01
XL
21 |
22LL | assert_eq!(<() as Tr>::B, 0); // causes the error above
c295e0f8 23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors
74b04a01 24 |
5869c6ff
XL
25 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
26 = note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
17df50a5 27 = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)
74b04a01
XL
28
29error: aborting due to 3 previous errors
30
31For more information about this error, try `rustc --explain E0080`.