about summary refs log tree commit diff
path: root/tests/ui/parser/trait-object-lifetime-parens.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2025-08-15 23:01:32 +0200
committerLeón Orell Valerian Liehr <me@fmease.dev>2025-08-16 16:15:58 +0200
commitf8f7c27d4f723913a6929e591c612865a7b62f70 (patch)
treebe984feaa6d5e72b0a79f23a7ae05a2bc642aea8 /tests/ui/parser/trait-object-lifetime-parens.rs
parenteb3e0d4c8a5599db0a4624662e5ab59380be8cd2 (diff)
downloadrust-f8f7c27d4f723913a6929e591c612865a7b62f70.tar.gz
rust-f8f7c27d4f723913a6929e591c612865a7b62f70.zip
Clean up parsers related to generic bounds
Diffstat (limited to 'tests/ui/parser/trait-object-lifetime-parens.rs')
-rw-r--r--tests/ui/parser/trait-object-lifetime-parens.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/parser/trait-object-lifetime-parens.rs b/tests/ui/parser/trait-object-lifetime-parens.rs
index 0ff4660bb0d..47a6884b316 100644
--- a/tests/ui/parser/trait-object-lifetime-parens.rs
+++ b/tests/ui/parser/trait-object-lifetime-parens.rs
@@ -6,10 +6,10 @@
 
 trait Trait {}
 
-fn f<'a, T: Trait + ('a)>() {} //~ ERROR parenthesized lifetime bounds are not supported
+fn f<'a, T: Trait + ('a)>() {} //~ ERROR lifetime bounds may not be parenthesized
 
 fn check<'a>() {
-    let _: Box<Trait + ('a)>; //~ ERROR parenthesized lifetime bounds are not supported
+    let _: Box<Trait + ('a)>; //~ ERROR lifetime bounds may not be parenthesized
     //[e2021]~^ ERROR expected a type, found a trait
     // FIXME: It'd be great if we could suggest removing the parentheses here too.
     //[e2015]~v ERROR lifetimes must be followed by `+` to form a trait object type