diff options
| author | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-05-12 10:55:11 +0200 |
|---|---|---|
| committer | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-05-17 11:06:35 +0200 |
| commit | 752d8a24d89b8fd6a4910d857b79c91ee0c3c250 (patch) | |
| tree | 3e8fe8d498a5f4ee224683a09f76a6657c05a8f6 /src/test/ui/const-generics | |
| parent | c71439791cd4b5faeb8e1de654e7557855b16c19 (diff) | |
| download | rust-752d8a24d89b8fd6a4910d857b79c91ee0c3c250.tar.gz rust-752d8a24d89b8fd6a4910d857b79c91ee0c3c250.zip | |
the best way to fix bugs is by ignoring them
Diffstat (limited to 'src/test/ui/const-generics')
| -rw-r--r-- | src/test/ui/const-generics/issues/issue-69654.rs | 18 | ||||
| -rw-r--r-- | src/test/ui/const-generics/issues/issue-69654.stderr | 14 |
2 files changed, 0 insertions, 32 deletions
diff --git a/src/test/ui/const-generics/issues/issue-69654.rs b/src/test/ui/const-generics/issues/issue-69654.rs deleted file mode 100644 index 0afc1a2617e..00000000000 --- a/src/test/ui/const-generics/issues/issue-69654.rs +++ /dev/null @@ -1,18 +0,0 @@ -#![feature(const_generics)] -#![allow(incomplete_features)] - -trait Bar<T> {} -impl<T> Bar<T> for [u8; T] {} -//~^ ERROR expected value, found type parameter `T` - -struct Foo<const T: usize> {} -impl<const T: usize> Foo<T> -where - [u8; T]: Bar<[(); T]>, -{ - fn foo() {} -} - -fn main() { - Foo::foo(); -} diff --git a/src/test/ui/const-generics/issues/issue-69654.stderr b/src/test/ui/const-generics/issues/issue-69654.stderr deleted file mode 100644 index 9d52603f462..00000000000 --- a/src/test/ui/const-generics/issues/issue-69654.stderr +++ /dev/null @@ -1,14 +0,0 @@ -error[E0423]: expected value, found type parameter `O` - --> $DIR/issue-69654.rs:5:25 - | -LL | impl<O> Bar<O> for [u8; O] {} - | ^ help: a tuple variant with a similar name exists: `Ok` - | - ::: $SRC_DIR/libcore/result.rs:LL:COL - | -LL | Ok(#[stable(feature = "rust1", since = "1.0.0")] T), - | --------------------------------------------------- similarly named tuple variant `Ok` defined here - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0423`. |
