11error[E0658]: `type const` syntax is experimental
2- --> $DIR/feature-gate-mgca-type-const-syntax.rs:5 :1
2+ --> $DIR/feature-gate-mgca-type-const-syntax.rs:1 :1
33 |
44LL | type const FOO: u8 = 10;
55 | ^^^^^^^^^^
@@ -9,7 +9,7 @@ LL | type const FOO: u8 = 10;
99 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
1010
1111error[E0658]: `type const` syntax is experimental
12- --> $DIR/feature-gate-mgca-type-const-syntax.rs:9 :5
12+ --> $DIR/feature-gate-mgca-type-const-syntax.rs:6 :5
1313 |
1414LL | type const BAR: bool;
1515 | ^^^^^^^^^^
@@ -19,7 +19,7 @@ LL | type const BAR: bool;
1919 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
2020
2121error[E0658]: `type const` syntax is experimental
22- --> $DIR/feature-gate-mgca-type-const-syntax.rs:14 :5
22+ --> $DIR/feature-gate-mgca-type-const-syntax.rs:12 :5
2323 |
2424LL | type const BAR: bool = false;
2525 | ^^^^^^^^^^
@@ -28,6 +28,36 @@ LL | type const BAR: bool = false;
2828 = help: add `#![feature(mgca_type_const_syntax)]` to the crate attributes to enable
2929 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
3030
31- error: aborting due to 3 previous errors
31+ error[E0658]: top-level `type const` are unstable
32+ --> $DIR/feature-gate-mgca-type-const-syntax.rs:1:1
33+ |
34+ LL | type const FOO: u8 = 10;
35+ | ^^^^^^^^^^^^^^^^^^^^^^^^
36+ |
37+ = note: see issue #132980 <https://github.com/rust-lang/rust/issues/132980> for more information
38+ = help: add `#![feature(min_generic_const_args)]` to the crate attributes to enable
39+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
40+
41+ error[E0658]: associated `type const` are unstable
42+ --> $DIR/feature-gate-mgca-type-const-syntax.rs:6:5
43+ |
44+ LL | type const BAR: bool;
45+ | ^^^^^^^^^^^^^^^^^^^^^
46+ |
47+ = note: see issue #132980 <https://github.com/rust-lang/rust/issues/132980> for more information
48+ = help: add `#![feature(min_generic_const_args)]` to the crate attributes to enable
49+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
50+
51+ error[E0658]: associated `type const` are unstable
52+ --> $DIR/feature-gate-mgca-type-const-syntax.rs:12:5
53+ |
54+ LL | type const BAR: bool = false;
55+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56+ |
57+ = note: see issue #132980 <https://github.com/rust-lang/rust/issues/132980> for more information
58+ = help: add `#![feature(min_generic_const_args)]` to the crate attributes to enable
59+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
60+
61+ error: aborting due to 6 previous errors
3262
3363For more information about this error, try `rustc --explain E0658`.
0 commit comments