]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-item/associated-item-duplicate-bounds.stderr
Auto merge of #106143 - matthiaskrgr:rollup-3kpy1dc, r=matthiaskrgr
[rust.git] / src / test / ui / associated-item / associated-item-duplicate-bounds.stderr
1 error: generic parameters may not be used in const operations
2   --> $DIR/associated-item-duplicate-bounds.rs:7:18
3    |
4 LL |     links: [u32; A::LINKS], // Shouldn't suggest bounds already there.
5    |                  ^^^^^^^^ cannot perform const operation using `A`
6    |
7    = note: type parameters may not be used in const expressions
8    = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
9
10 error: aborting due to previous error
11