]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/nested-type.full.stderr
Add revisions to const generic type-dependent UI tests.
[rust.git] / src / test / ui / const-generics / nested-type.full.stderr
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()
11    |     ^^^^^^^^^^^^^^^^^^ calling non-const function `Foo::{{constant}}#0::Foo::<17_usize>::value`
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`.