Skip to content

Commit 25cd01b

Browse files
committed
issue 68890: add more minimal repro
1 parent 09997e7 commit 25cd01b

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/test/ui/parser/issue-68890-2.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
type X = (?'a) +;
2+
//~^ ERROR `?` may only modify trait bounds, not lifetime bounds
3+
//~| ERROR expected trait bound, not lifetime bound
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
error: `?` may only modify trait bounds, not lifetime bounds
2+
--> $DIR/issue-68890-2.rs:1:11
3+
|
4+
LL | type X = (?'a) +;
5+
| ^
6+
7+
error: expected trait bound, not lifetime bound
8+
--> $DIR/issue-68890-2.rs:1:11
9+
|
10+
LL | type X = (?'a) +;
11+
| ^^^
12+
13+
error: aborting due to 2 previous errors
14+

0 commit comments

Comments
 (0)