]>
Commit | Line | Data |
---|---|---|
2b03887a FG |
1 | error[E0080]: evaluation of `<Bar<u16, u8> as Foo>::AMT` failed |
2 | --> $DIR/issue-44578.rs:13:24 | |
3 | | | |
4 | LL | const AMT: usize = [A::AMT][(A::AMT > B::AMT) as usize]; | |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ index out of bounds: the length is 1 but the index is 1 | |
6 | ||
781aab86 | 7 | note: erroneous constant encountered |
2b03887a | 8 | --> $DIR/issue-44578.rs:25:20 |
0531ce1d | 9 | | |
94b46f34 | 10 | LL | println!("{}", <Bar<u16, u8> as Foo>::AMT); |
487cf647 | 11 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
0531ce1d | 12 | |
c620b35d FG |
13 | note: erroneous constant encountered |
14 | --> $DIR/issue-44578.rs:25:20 | |
15 | | | |
16 | LL | println!("{}", <Bar<u16, u8> as Foo>::AMT); | |
17 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
18 | | | |
19 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` | |
20 | ||
781aab86 | 21 | note: erroneous constant encountered |
2b03887a | 22 | --> $DIR/issue-44578.rs:25:20 |
064997fb FG |
23 | | |
24 | LL | println!("{}", <Bar<u16, u8> as Foo>::AMT); | |
487cf647 | 25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
064997fb | 26 | | |
487cf647 | 27 | = note: this note originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) |
2b03887a | 28 | |
781aab86 | 29 | note: erroneous constant encountered |
487cf647 FG |
30 | --> $DIR/issue-44578.rs:25:20 |
31 | | | |
32 | LL | println!("{}", <Bar<u16, u8> as Foo>::AMT); | |
33 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
34 | | | |
ed00b5ec | 35 | = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
487cf647 FG |
36 | = note: this note originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) |
37 | ||
4b012472 | 38 | error: aborting due to 1 previous error |
064997fb | 39 | |
2b03887a | 40 | For more information about this error, try `rustc --explain E0080`. |