]>
Commit | Line | Data |
---|---|---|
3dfed10e XL |
1 | error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants |
2 | --> $DIR/nested-type.rs:16:5 | |
3 | | | |
4 | LL | Foo::<17>::value() | |
5 | | ^^^^^^^^^^^^^^^^^^ | |
6 | ||
7 | error[E0080]: evaluation of constant value failed | |
8 | --> $DIR/nested-type.rs:16:5 | |
9 | | | |
10 | LL | Foo::<17>::value() | |
1b1a35ee | 11 | | ^^^^^^^^^^^^^^^^^^ calling non-const function `Foo::{constant#0}::Foo::<17_usize>::value` |
3dfed10e XL |
12 | |
13 | error: aborting due to 2 previous errors | |
14 | ||
15 | Some errors have detailed explanations: E0015, E0080. | |
16 | For more information about an error, try `rustc --explain E0015`. |