]>
Commit | Line | Data |
---|---|---|
f035d41b XL |
1 | warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes |
2 | --> $DIR/issue-66205.rs:2:12 | |
3 | | | |
4 | LL | #![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 | ||
ba9703b0 | 10 | error: constant expression depends on a generic parameter |
f9f354fc | 11 | --> $DIR/issue-66205.rs:6:12 |
ba9703b0 XL |
12 | | |
13 | LL | fact::<{ N - 1 }>(); | |
14 | | ^^^^^^^^^ | |
15 | | | |
16 | = note: this may fail depending on what value the parameter takes | |
17 | ||
f035d41b | 18 | error: aborting due to previous error; 1 warning emitted |
ba9703b0 | 19 |