]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-const_generics.stderr
Merge branch 'master' into feature/incorporate-tracing
[rust.git] / src / test / ui / feature-gates / feature-gate-const_generics.stderr
1 error[E0658]: const generics are unstable
2   --> $DIR/feature-gate-const_generics.rs:1:14
3    |
4 LL | fn foo<const X: ()>() {}
5    |              ^
6    |
7    = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
8    = help: add `#![feature(const_generics)]` to the crate attributes to enable
9
10 error[E0658]: const generics are unstable
11   --> $DIR/feature-gate-const_generics.rs:3:18
12    |
13 LL | struct Foo<const X: usize>([(); X]);
14    |                  ^
15    |
16    = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
17    = help: add `#![feature(const_generics)]` to the crate attributes to enable
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0658`.