Revive tests

This commit is contained in:
Deadbeef 2021-08-27 08:26:35 +00:00
parent f3d96e9391
commit 0a3a6087fb
No known key found for this signature in database
GPG Key ID: 027DF9338862ADDD
4 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,6 @@
// compile-flags: -Z parse-only
#![feature(const_trait_impl)]
struct S<T: ~const ~const Tr>;
//~^ ERROR expected identifier, found `~`

View File

@ -0,0 +1,8 @@
error: expected identifier, found `~`
--> $DIR/tilde-twice.rs:5:20
|
LL | struct S<T: ~const ~const Tr>;
| ^ expected identifier
error: aborting due to previous error

View File

@ -0,0 +1,6 @@
// compiler-flags: -Z parse-only
#![feature(const_trait_impl)]
struct S<T: const Tr>;
//~^ ERROR expected one of `!`, `(`, `,`, `=`, `>`, `?`, `for`, `~`, lifetime, or path

View File

@ -0,0 +1,8 @@
error: expected one of `!`, `(`, `,`, `=`, `>`, `?`, `for`, `~`, lifetime, or path, found keyword `const`
--> $DIR/without-tilde.rs:5:13
|
LL | struct S<T: const Tr>;
| ^^^^^ expected one of 10 possible tokens
error: aborting due to previous error