mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
issue 68890: add more minimal repro
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
type X = (?'a) +;
|
||||
//~^ ERROR `?` may only modify trait bounds, not lifetime bounds
|
||||
//~| ERROR expected trait bound, not lifetime bound
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user