]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/nested-type.full.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / const-generics / nested-type.full.stderr
CommitLineData
3dfed10e
XL
1error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants
2 --> $DIR/nested-type.rs:16:5
3 |
4LL | Foo::<17>::value()
5 | ^^^^^^^^^^^^^^^^^^
6
7error[E0080]: evaluation of constant value failed
8 --> $DIR/nested-type.rs:16:5
9 |
10LL | Foo::<17>::value()
1b1a35ee 11 | ^^^^^^^^^^^^^^^^^^ calling non-const function `Foo::{constant#0}::Foo::<17_usize>::value`
3dfed10e
XL
12
13error: aborting due to 2 previous errors
14
15Some errors have detailed explanations: E0015, E0080.
16For more information about an error, try `rustc --explain E0015`.