We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09997e7 commit 25cd01bCopy full SHA for 25cd01b
src/test/ui/parser/issue-68890-2.rs
@@ -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
src/test/ui/parser/issue-68890-2.stderr
@@ -0,0 +1,14 @@
+error: `?` may only modify trait bounds, not lifetime bounds
+ --> $DIR/issue-68890-2.rs:1:11
+ |
4
+LL | type X = (?'a) +;
5
+ | ^
6
+
7
+error: expected trait bound, not lifetime bound
8
9
10
11
+ | ^^^
12
13
+error: aborting due to 2 previous errors
14
0 commit comments