fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0080]: evaluation of `<() as Tr>::B` failed 2 --> $DIR/defaults-not-assumed-fail.rs:8:19 3 | 4LL | const B: u8 = Self::A + 1; 5 | ^^^^^^^^^^^ attempt to compute `u8::MAX + 1_u8`, which would overflow 6 7note: erroneous constant encountered 8 --> $DIR/defaults-not-assumed-fail.rs:33:16 9 | 10LL | assert_eq!(<() as Tr>::B, 0); // causes the error above 11 | ^^^^^^^^^^^^^ 12 13note: erroneous constant encountered 14 --> $DIR/defaults-not-assumed-fail.rs:33:5 15 | 16LL | assert_eq!(<() as Tr>::B, 0); // causes the error above 17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 18 | 19 = note: this note originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) 20 21note: erroneous constant encountered 22 --> $DIR/defaults-not-assumed-fail.rs:33:5 23 | 24LL | assert_eq!(<() as Tr>::B, 0); // causes the error above 25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 26 | 27 = note: this note originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) 28 29error: aborting due to previous error 30 31For more information about this error, try `rustc --explain E0080`.