Skip to content

Commit 0a3a608

Browse files
committed
Revive tests
1 parent f3d96e9 commit 0a3a608

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// compile-flags: -Z parse-only
2+
3+
#![feature(const_trait_impl)]
4+
5+
struct S<T: ~const ~const Tr>;
6+
//~^ ERROR expected identifier, found `~`
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: expected identifier, found `~`
2+
--> $DIR/tilde-twice.rs:5:20
3+
|
4+
LL | struct S<T: ~const ~const Tr>;
5+
| ^ expected identifier
6+
7+
error: aborting due to previous error
8+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// compiler-flags: -Z parse-only
2+
3+
#![feature(const_trait_impl)]
4+
5+
struct S<T: const Tr>;
6+
//~^ ERROR expected one of `!`, `(`, `,`, `=`, `>`, `?`, `for`, `~`, lifetime, or path
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: expected one of `!`, `(`, `,`, `=`, `>`, `?`, `for`, `~`, lifetime, or path, found keyword `const`
2+
--> $DIR/without-tilde.rs:5:13
3+
|
4+
LL | struct S<T: const Tr>;
5+
| ^^^^^ expected one of 10 possible tokens
6+
7+
error: aborting due to previous error
8+

0 commit comments

Comments
 (0)