@@ -49,27 +49,35 @@ LL | generic::<const { 1 }>();
4949 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
5050
5151error[E0658]: unbraced const blocks as const args are experimental
52- --> $DIR/unbraced_const_block_const_arg_gated.rs:38:1
52+ --> $DIR/unbraced_const_block_const_arg_gated.rs:36:32
5353 |
54- LL | const { 1 };
55- | ^^^^^^^^^^^
54+ LL | type const TYPE_CONST: usize = const { 1 };
55+ | ^^^^^^^^^^^
5656 |
5757 = note: see issue #132980 <https://github.com/rust-lang/rust/issues/132980> for more information
5858 = help: add `#![feature(min_generic_const_args)]` to the crate attributes to enable
5959 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
6060
61+ error[E0658]: `type const` syntax is experimental
62+ --> $DIR/unbraced_const_block_const_arg_gated.rs:36:1
63+ |
64+ LL | type const TYPE_CONST: usize = const { 1 };
65+ | ^^^^^^^^^^
66+ |
67+ = note: see issue #132980 <https://github.com/rust-lang/rust/issues/132980> for more information
68+ = help: add `#![feature(mgca_type_const_syntax)]` to the crate attributes to enable
69+ = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
70+
6171error[E0658]: top-level `type const` are unstable
6272 --> $DIR/unbraced_const_block_const_arg_gated.rs:36:1
6373 |
64- LL | / type const TYPE_CONST: usize =
65- LL | |
66- LL | | const { 1 };
67- | |____________^
74+ LL | type const TYPE_CONST: usize = const { 1 };
75+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6876 |
6977 = note: see issue #132980 <https://github.com/rust-lang/rust/issues/132980> for more information
7078 = help: add `#![feature(min_generic_const_args)]` to the crate attributes to enable
7179 = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
7280
73- error: aborting due to 7 previous errors
81+ error: aborting due to 8 previous errors
7482
7583For more information about this error, try `rustc --explain E0658`.
0 commit comments