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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
461 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: use `#![feature(generic_const_exprs)]` to allow generic const expressions
2020-02-02 02:55:11 -06:00
error: aborting due to previous error