]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/const-param.stderr
Merge commit '5988bbd24aa87732bfa1d111ba00bcdaa22c481a' into sync_cg_clif-2020-11-27
[rust.git] / src / test / ui / binding / const-param.stderr
1 warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
2   --> $DIR/const-param.rs:3: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    = help: consider using `min_const_generics` instead, which is more stable and complete
10
11 error[E0158]: const parameters cannot be referenced in patterns
12   --> $DIR/const-param.rs:7:9
13    |
14 LL |         N => {}
15    |         ^
16
17 error: aborting due to previous error; 1 warning emitted
18
19 For more information about this error, try `rustc --explain E0158`.