11error[E0412]: cannot find type `N` in this scope
2- --> $DIR/missing-type-parameter2.rs:6 :8
2+ --> $DIR/missing-type-parameter2.rs:3 :8
33 |
44LL | struct X<const N: u8>();
55 | ------------------------ similarly named struct `X` defined here
@@ -17,7 +17,7 @@ LL | impl<N> X<N> {}
1717 | +++
1818
1919error[E0412]: cannot find type `N` in this scope
20- --> $DIR/missing-type-parameter2.rs:9 :28
20+ --> $DIR/missing-type-parameter2.rs:6 :28
2121 |
2222LL | impl<T, const A: u8 = 2> X<N> {}
2323 | - ^
@@ -34,7 +34,7 @@ LL | impl<T, const A: u8 = 2, N> X<N> {}
3434 | +++
3535
3636error[E0412]: cannot find type `T` in this scope
37- --> $DIR/missing-type-parameter2.rs:14 :20
37+ --> $DIR/missing-type-parameter2.rs:11 :20
3838 |
3939LL | struct X<const N: u8>();
4040 | ------------------------ similarly named struct `X` defined here
@@ -52,7 +52,7 @@ LL | fn foo<T>(_: T) where T: Send {}
5252 | +++
5353
5454error[E0412]: cannot find type `T` in this scope
55- --> $DIR/missing-type-parameter2.rs:14 :11
55+ --> $DIR/missing-type-parameter2.rs:11 :11
5656 |
5757LL | struct X<const N: u8>();
5858 | ------------------------ similarly named struct `X` defined here
@@ -70,7 +70,7 @@ LL | fn foo<T>(_: T) where T: Send {}
7070 | +++
7171
7272error[E0412]: cannot find type `A` in this scope
73- --> $DIR/missing-type-parameter2.rs:18 :24
73+ --> $DIR/missing-type-parameter2.rs:15 :24
7474 |
7575LL | struct X<const N: u8>();
7676 | ------------------------ similarly named struct `X` defined here
@@ -88,7 +88,7 @@ LL | fn bar<const N: u8, A>(_: A) {}
8888 | +++
8989
9090error[E0747]: unresolved item provided when a constant was expected
91- --> $DIR/missing-type-parameter2.rs:6 :8
91+ --> $DIR/missing-type-parameter2.rs:3 :8
9292 |
9393LL | impl X<N> {}
9494 | ^
@@ -99,13 +99,13 @@ LL | impl X<{ N }> {}
9999 | + +
100100
101101error: defaults for const parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
102- --> $DIR/missing-type-parameter2.rs:9 :15
102+ --> $DIR/missing-type-parameter2.rs:6 :15
103103 |
104104LL | impl<T, const A: u8 = 2> X<N> {}
105105 | ^
106106
107107error[E0747]: unresolved item provided when a constant was expected
108- --> $DIR/missing-type-parameter2.rs:9 :28
108+ --> $DIR/missing-type-parameter2.rs:6 :28
109109 |
110110LL | impl<T, const A: u8 = 2> X<N> {}
111111 | ^
0 commit comments