issue 68890: add more minimal repro
This commit is contained in:
parent
09997e7227
commit
25cd01b863
2 changed files with 17 additions and 0 deletions
3
src/test/ui/parser/issue-68890-2.rs
Normal file
3
src/test/ui/parser/issue-68890-2.rs
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
type X = (?'a) +;
|
||||||
|
//~^ ERROR `?` may only modify trait bounds, not lifetime bounds
|
||||||
|
//~| ERROR expected trait bound, not lifetime bound
|
14
src/test/ui/parser/issue-68890-2.stderr
Normal file
14
src/test/ui/parser/issue-68890-2.stderr
Normal 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue