rust/tests/ui/associated-item/associated-item-duplicate-bounds.stderr

12 lines
463 B
Plaintext
Raw Normal View History

2020-11-17 04:44:21 -06:00
error: generic parameters may not be used in const operations
--> $DIR/associated-item-duplicate-bounds.rs:7:18
2020-02-02 02:55:11 -06:00
|
LL | links: [u32; A::LINKS], // Shouldn't suggest bounds already there.
2020-11-17 04:44:21 -06:00
| ^^^^^^^^ cannot perform const operation using `A`
2020-02-02 02:55:11 -06:00
|
2020-11-17 04:44:21 -06:00
= note: type parameters may not be used in const expressions
= help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
2020-02-02 02:55:11 -06:00
error: aborting due to 1 previous error
2020-02-02 02:55:11 -06:00