diff options
| author | Ellen <supbscripter@gmail.com> | 2021-10-23 17:46:47 +0100 |
|---|---|---|
| committer | Ellen <supbscripter@gmail.com> | 2021-12-10 19:21:25 +0000 |
| commit | 433e13279de9b31d7abbf5d5c9603a9141cb02bd (patch) | |
| tree | b394ea0be04a803edd54c6b6735e6c0e0fc56dfa /src/test/ui/missing/missing-items | |
| parent | db9b8cef86fc6b7b754869fa0d4b0449bab6b38f (diff) | |
| download | rust-433e13279de9b31d7abbf5d5c9603a9141cb02bd.tar.gz rust-433e13279de9b31d7abbf5d5c9603a9141cb02bd.zip | |
bless tests
Diffstat (limited to 'src/test/ui/missing/missing-items')
| -rw-r--r-- | src/test/ui/missing/missing-items/missing-type-parameter2.stderr | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/ui/missing/missing-items/missing-type-parameter2.stderr b/src/test/ui/missing/missing-items/missing-type-parameter2.stderr index f955659f23d..3b930d7e4ec 100644 --- a/src/test/ui/missing/missing-items/missing-type-parameter2.stderr +++ b/src/test/ui/missing/missing-items/missing-type-parameter2.stderr @@ -1,5 +1,5 @@ error[E0412]: cannot find type `N` in this scope - --> $DIR/missing-type-parameter2.rs:6:8 + --> $DIR/missing-type-parameter2.rs:3:8 | LL | struct X<const N: u8>(); | ------------------------ similarly named struct `X` defined here @@ -17,7 +17,7 @@ LL | impl<N> X<N> {} | +++ error[E0412]: cannot find type `N` in this scope - --> $DIR/missing-type-parameter2.rs:9:28 + --> $DIR/missing-type-parameter2.rs:6:28 | LL | impl<T, const A: u8 = 2> X<N> {} | - ^ @@ -34,7 +34,7 @@ LL | impl<T, const A: u8 = 2, N> X<N> {} | +++ error[E0412]: cannot find type `T` in this scope - --> $DIR/missing-type-parameter2.rs:14:20 + --> $DIR/missing-type-parameter2.rs:11:20 | LL | struct X<const N: u8>(); | ------------------------ similarly named struct `X` defined here @@ -52,7 +52,7 @@ LL | fn foo<T>(_: T) where T: Send {} | +++ error[E0412]: cannot find type `T` in this scope - --> $DIR/missing-type-parameter2.rs:14:11 + --> $DIR/missing-type-parameter2.rs:11:11 | LL | struct X<const N: u8>(); | ------------------------ similarly named struct `X` defined here @@ -70,7 +70,7 @@ LL | fn foo<T>(_: T) where T: Send {} | +++ error[E0412]: cannot find type `A` in this scope - --> $DIR/missing-type-parameter2.rs:18:24 + --> $DIR/missing-type-parameter2.rs:15:24 | LL | struct X<const N: u8>(); | ------------------------ similarly named struct `X` defined here @@ -88,7 +88,7 @@ LL | fn bar<const N: u8, A>(_: A) {} | +++ error[E0747]: unresolved item provided when a constant was expected - --> $DIR/missing-type-parameter2.rs:6:8 + --> $DIR/missing-type-parameter2.rs:3:8 | LL | impl X<N> {} | ^ @@ -99,13 +99,13 @@ LL | impl X<{ N }> {} | + + error: defaults for const parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions - --> $DIR/missing-type-parameter2.rs:9:15 + --> $DIR/missing-type-parameter2.rs:6:15 | LL | impl<T, const A: u8 = 2> X<N> {} | ^ error[E0747]: unresolved item provided when a constant was expected - --> $DIR/missing-type-parameter2.rs:9:28 + --> $DIR/missing-type-parameter2.rs:6:28 | LL | impl<T, const A: u8 = 2> X<N> {} | ^ |
