11error: generic parameters may not be used in const operations
2- --> $DIR/explicit_anon_consts.rs:8 :41
2+ --> $DIR/explicit_anon_consts.rs:11 :41
33 |
44LL | type Adt3<const N: usize> = Foo<const { N }>;
55 | ^ cannot perform const operation using `N`
@@ -8,7 +8,7 @@ LL | type Adt3<const N: usize> = Foo<const { N }>;
88 = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
99
1010error: generic parameters may not be used in const operations
11- --> $DIR/explicit_anon_consts.rs:16 :42
11+ --> $DIR/explicit_anon_consts.rs:19 :42
1212 |
1313LL | type Arr3<const N: usize> = [(); const { N }];
1414 | ^ cannot perform const operation using `N`
@@ -17,7 +17,7 @@ LL | type Arr3<const N: usize> = [(); const { N }];
1717 = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
1818
1919error: generic parameters may not be used in const operations
20- --> $DIR/explicit_anon_consts.rs:25 :27
20+ --> $DIR/explicit_anon_consts.rs:28 :27
2121 |
2222LL | let _3 = [(); const { N }];
2323 | ^ cannot perform const operation using `N`
@@ -26,7 +26,7 @@ LL | let _3 = [(); const { N }];
2626 = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
2727
2828error: generic parameters may not be used in const operations
29- --> $DIR/explicit_anon_consts.rs:37 :46
29+ --> $DIR/explicit_anon_consts.rs:40 :46
3030 |
3131LL | const ITEM3<const N: usize>: usize = const { N };
3232 | ^ cannot perform const operation using `N`
@@ -35,7 +35,7 @@ LL | const ITEM3<const N: usize>: usize = const { N };
3535 = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
3636
3737error: generic parameters may not be used in const operations
38- --> $DIR/explicit_anon_consts.rs:55 :31
38+ --> $DIR/explicit_anon_consts.rs:58 :31
3939 |
4040LL | T3: Trait<ASSOC = const { N }>,
4141 | ^ cannot perform const operation using `N`
@@ -44,7 +44,7 @@ LL | T3: Trait<ASSOC = const { N }>,
4444 = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
4545
4646error: generic parameters may not be used in const operations
47- --> $DIR/explicit_anon_consts.rs:64 :58
47+ --> $DIR/explicit_anon_consts.rs:67 :58
4848 |
4949LL | struct Default3<const N: usize, const M: usize = const { N }>;
5050 | ^ cannot perform const operation using `N`
@@ -53,37 +53,37 @@ LL | struct Default3<const N: usize, const M: usize = const { N }>;
5353 = help: add `#![feature(generic_const_exprs)]` to allow generic const expressions
5454
5555error: complex const arguments must be placed inside of a `const` block
56- --> $DIR/explicit_anon_consts.rs:10 :33
56+ --> $DIR/explicit_anon_consts.rs:13 :33
5757 |
5858LL | type Adt4<const N: usize> = Foo<{ 1 + 1 }>;
5959 | ^^^^^^^^^
6060
6161error: complex const arguments must be placed inside of a `const` block
62- --> $DIR/explicit_anon_consts.rs:18 :34
62+ --> $DIR/explicit_anon_consts.rs:21 :34
6363 |
6464LL | type Arr4<const N: usize> = [(); 1 + 1];
6565 | ^^^^^
6666
6767error: complex const arguments must be placed inside of a `const` block
68- --> $DIR/explicit_anon_consts.rs:27 :19
68+ --> $DIR/explicit_anon_consts.rs:30 :19
6969 |
7070LL | let _4 = [(); 1 + 1];
7171 | ^^^^^
7272
7373error: complex const arguments must be placed inside of a `const` block
74- --> $DIR/explicit_anon_consts.rs:40 :38
74+ --> $DIR/explicit_anon_consts.rs:43 :38
7575 |
7676LL | const ITEM4<const N: usize>: usize = { 1 + 1 };
7777 | ^^^^^^^^^
7878
7979error: complex const arguments must be placed inside of a `const` block
80- --> $DIR/explicit_anon_consts.rs:57 :23
80+ --> $DIR/explicit_anon_consts.rs:60 :23
8181 |
8282LL | T4: Trait<ASSOC = { 1 + 1 }>,
8383 | ^^^^^^^^^
8484
8585error: complex const arguments must be placed inside of a `const` block
86- --> $DIR/explicit_anon_consts.rs:66 :50
86+ --> $DIR/explicit_anon_consts.rs:69 :50
8787 |
8888LL | struct Default4<const N: usize, const M: usize = { 1 + 1 }>;
8989 | ^^^^^^^^^
0 commit comments