fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
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 | | 7 | attempt to add with overflow 8 | 9 = note: `#[deny(const_err)]` on by default 10 11error[E0080]: evaluation of constant expression failed 12 --> $DIR/defaults-not-assumed-fail.rs:33:5 13 | 14LL | assert_eq!(<() as Tr>::B, 0); // causes the error above 15 | ^^^^^^^^^^^-------------^^^^^ 16 | | 17 | referenced constant has errors 18 | 19 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) 20 21error: erroneous constant used 22 --> $DIR/defaults-not-assumed-fail.rs:33:5 23 | 24LL | assert_eq!(<() as Tr>::B, 0); // causes the error above 25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ referenced constant has errors 26 | 27 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) 28 29error: aborting due to 3 previous errors 30 31For more information about this error, try `rustc --explain E0080`.