about summary refs log tree commit diff
path: root/tests/ui/impl-trait/precise-capturing/unexpected-token.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-06-05 16:18:52 -0400
committerMichael Goulet <michael@errs.io>2024-06-17 22:35:25 -0400
commitb1efe1ab5d10c5dc0462445273ca4e42dea3c5e3 (patch)
tree88d5d68eaba69cf8e65e87f38b6dcd04bd9c3f46 /tests/ui/impl-trait/precise-capturing/unexpected-token.rs
parent68bd001c00e37a6c6854482138d27a76428efdff (diff)
downloadrust-b1efe1ab5d10c5dc0462445273ca4e42dea3c5e3.tar.gz
rust-b1efe1ab5d10c5dc0462445273ca4e42dea3c5e3.zip
Rework precise capturing syntax
Diffstat (limited to 'tests/ui/impl-trait/precise-capturing/unexpected-token.rs')
-rw-r--r--tests/ui/impl-trait/precise-capturing/unexpected-token.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/impl-trait/precise-capturing/unexpected-token.rs b/tests/ui/impl-trait/precise-capturing/unexpected-token.rs
index 2a7ccbe1e60..a1089fd7bfc 100644
--- a/tests/ui/impl-trait/precise-capturing/unexpected-token.rs
+++ b/tests/ui/impl-trait/precise-capturing/unexpected-token.rs
@@ -2,7 +2,7 @@
 // token due to a strange interaction between the sequence parsing code and the
 // param/lifetime parsing code.
 
-fn hello() -> impl use<'a {}> Sized {}
+fn hello() -> impl Sized + use<'a {}> {}
 //~^ ERROR expected one of `,` or `>`, found `{`
 
 fn main() {}