delete no longer relevant tests

This commit is contained in:
Bastian Kauschke 2020-11-17 11:42:16 +01:00
parent 06cc9c26da
commit 49f890bdb3
10 changed files with 0 additions and 114 deletions

View File

@ -1,3 +0,0 @@
trait Trait<const T: ()> {} //~ ERROR const generics are unstable
fn main() {}

View File

@ -1,12 +0,0 @@
error[E0658]: const generics are unstable
--> $DIR/const-param-in-trait-ungated.rs:1:19
|
LL | trait Trait<const T: ()> {}
| ^
|
= note: see issue #74878 <https://github.com/rust-lang/rust/issues/74878> for more information
= help: add `#![feature(min_const_generics)]` to the crate attributes to enable
error: aborting due to previous error
For more information about this error, try `rustc --explain E0658`.

View File

@ -1,9 +0,0 @@
struct B<const I: u8>; //~ ERROR const generics are unstable
impl B<0> {
fn bug() -> Self {
panic!()
}
}
fn main() {}

View File

@ -1,12 +0,0 @@
error[E0658]: const generics are unstable
--> $DIR/issue-60263.rs:1:16
|
LL | struct B<const I: u8>;
| ^
|
= note: see issue #74878 <https://github.com/rust-lang/rust/issues/74878> for more information
= help: add `#![feature(min_const_generics)]` to the crate attributes to enable
error: aborting due to previous error
For more information about this error, try `rustc --explain E0658`.

View File

@ -1,7 +0,0 @@
#![feature(const_generics)]
//~^ ERROR features `const_generics` and `min_const_generics` are incompatible
#![allow(incomplete_features)]
#![feature(min_const_generics)]
fn main() {}

View File

@ -1,13 +0,0 @@
error: features `const_generics` and `min_const_generics` are incompatible, using them at the same time is not allowed
--> $DIR/min-and-full-same-time.rs:1:12
|
LL | #![feature(const_generics)]
| ^^^^^^^^^^^^^^
...
LL | #![feature(min_const_generics)]
| ^^^^^^^^^^^^^^^^^^
|
= help: remove one of these features
error: aborting due to previous error

View File

@ -1,4 +0,0 @@
fn test<const N: usize>() {}
//~^ ERROR const generics are unstable
fn main() {}

View File

@ -1,12 +0,0 @@
error[E0658]: const generics are unstable
--> $DIR/feature-gate-min_const_generics.rs:1:15
|
LL | fn test<const N: usize>() {}
| ^
|
= note: see issue #74878 <https://github.com/rust-lang/rust/issues/74878> for more information
= help: add `#![feature(min_const_generics)]` to the crate attributes to enable
error: aborting due to previous error
For more information about this error, try `rustc --explain E0658`.

View File

@ -1,9 +0,0 @@
struct ConstFn<const F: fn()>;
//~^ ERROR const generics are unstable
//~^^ ERROR using function pointers as const generic parameters is forbidden
struct ConstPtr<const P: *const u32>;
//~^ ERROR const generics are unstable
//~^^ ERROR using raw pointers as const generic parameters is forbidden
fn main() {}

View File

@ -1,33 +0,0 @@
error[E0658]: const generics are unstable
--> $DIR/feature-gate-const_generics-ptr.rs:1:22
|
LL | struct ConstFn<const F: fn()>;
| ^
|
= note: see issue #74878 <https://github.com/rust-lang/rust/issues/74878> for more information
= help: add `#![feature(min_const_generics)]` to the crate attributes to enable
error[E0658]: const generics are unstable
--> $DIR/feature-gate-const_generics-ptr.rs:5:23
|
LL | struct ConstPtr<const P: *const u32>;
| ^
|
= note: see issue #74878 <https://github.com/rust-lang/rust/issues/74878> for more information
= help: add `#![feature(min_const_generics)]` to the crate attributes to enable
error: using function pointers as const generic parameters is forbidden
--> $DIR/feature-gate-const_generics-ptr.rs:1:25
|
LL | struct ConstFn<const F: fn()>;
| ^^^^
error: using raw pointers as const generic parameters is forbidden
--> $DIR/feature-gate-const_generics-ptr.rs:5:26
|
LL | struct ConstPtr<const P: *const u32>;
| ^^^^^^^^^^
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0658`.