issue 68890: add more minimal repro

This commit is contained in:
Mazdak Farrokhzad 2020-03-07 12:14:39 +01:00
parent 09997e7227
commit 25cd01b863
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,3 @@
type X = (?'a) +;
//~^ ERROR `?` may only modify trait bounds, not lifetime bounds
//~| ERROR expected trait bound, not lifetime bound

View File

@ -0,0 +1,14 @@
error: `?` may only modify trait bounds, not lifetime bounds
--> $DIR/issue-68890-2.rs:1:11
|
LL | type X = (?'a) +;
| ^
error: expected trait bound, not lifetime bound
--> $DIR/issue-68890-2.rs:1:11
|
LL | type X = (?'a) +;
| ^^^
error: aborting due to 2 previous errors