]> git.proxmox.com Git - rustc.git/blame - src/test/ui/const-generics/occurs-check/unify-fixpoint.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / const-generics / occurs-check / unify-fixpoint.stderr
CommitLineData
1b1a35ee
XL
1warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/unify-fixpoint.rs:1:12
3 |
4LL | #![feature(const_generics)]
5 | ^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
9
10error: constant expression depends on a generic parameter
11 --> $DIR/unify-fixpoint.rs:9:32
12 |
13LL | fn bind<const N: usize>(value: [u8; N + 2]) -> [u8; N * 2] {
14 | ^^^^^^^^^^^
15 |
16 = note: this may fail depending on what value the parameter takes
17
18error: constant expression depends on a generic parameter
19 --> $DIR/unify-fixpoint.rs:9:48
20 |
21LL | fn bind<const N: usize>(value: [u8; N + 2]) -> [u8; N * 2] {
22 | ^^^^^^^^^^^
23 |
24 = note: this may fail depending on what value the parameter takes
25
26error: aborting due to 2 previous errors; 1 warning emitted
27